Skip to content

Commit

Permalink
Restore doctests by utilizing importlib. Ref pytest-dev/pytest#3396.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 29, 2023
1 parent b590d26 commit 6645710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion conftest.py
@@ -1 +1,4 @@
collect_ignore = ['fabfile.py']
collect_ignore = [
'fabfile.py',
'jaraco/site/projecthoneypot/croakysteel.py',
]
3 changes: 1 addition & 2 deletions pytest.ini
@@ -1,7 +1,6 @@
[pytest]
norecursedirs=dist build .tox .eggs
# disable doctests 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
Expand Down

0 comments on commit 6645710

Please sign in to comment.