Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pytest-markdown-docs"
version = "0.9.1"
version = "0.9.2"
description = "Run markdown code fences through pytest"
readme = "README.md"
authors = [
Expand Down
4 changes: 2 additions & 2 deletions src/pytest_markdown_docs/_runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def runtest(self, test: FenceTestDefinition, args, *, asyncio_runner=None):
if asyncio_runner is None:
raise RuntimeError(
"Top-level async code in markdown code blocks is not natively supported.\n"
"You need to install pytest-asyncio to run async code blocks:\n"
" pip install pytest-asyncio"
"You need pytest-asyncio>=1.1.0 to run async code blocks:\n"
" pip install 'pytest-asyncio>=1.1.0'"
)
coro = eval(compiled, args)
asyncio_runner.run(coro)
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,4 +1108,4 @@ def test_top_level_await_requires_pytest_asyncio(testdir):
)
result = testdir.runpytest("--markdown-docs")
result.assert_outcomes(failed=1)
result.stdout.fnmatch_lines(["*pytest-asyncio*"])
result.stdout.fnmatch_lines(["*pytest-asyncio>=1.1.0*"])
Loading