From 8067f47f8c1761a94e70db62748aa3e5e95b0da2 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 d1d4ad7..aec763b 100644 --- a/pytest.ini +++ b/pytest.ini @@ -1,7 +1,6 @@ [pytest] norecursedirs=dist build .tox .eggs -# 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