From c702300c9e8cef7a334804515ef1e92441797291 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 22 Dec 2022 12:15:47 -0500 Subject: [PATCH] Restore doctests by utilizing importlib. Ref pytest-dev/pytest#3396. --- pytest.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 96a2542..aec763b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,7 +1,6 @@ [pytest] norecursedirs=dist build .tox .eggs -# doctests disabled due to pytest-dev/pytest#3396 -# addopts=--doctest-modules +addopts=--doctest-modules --import-mode=importlib doctest_optionflags=ALLOW_UNICODE ELLIPSIS filterwarnings= # Ensure ResourceWarnings are emitted