We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da77a13 commit 6be6459Copy full SHA for 6be6459
1 file changed
src/libvcs/pytest_plugin.py
@@ -2,6 +2,7 @@
2
3
from __future__ import annotations
4
5
+import asyncio
6
import functools
7
import getpass
8
import pathlib
@@ -851,6 +852,8 @@ def add_doctest_fixtures(
851
852
853
if not isinstance(request._pyfuncitem, DoctestItem): # Only run on doctest items
854
return
855
+ # Add asyncio for async doctests
856
+ doctest_namespace["asyncio"] = asyncio
857
doctest_namespace["tmp_path"] = tmp_path
858
if shutil.which("git"):
859
doctest_namespace["create_git_remote_repo"] = functools.partial(
0 commit comments