Skip to content

Commit 6ff02e0

Browse files
committed
Configure pytest to support namespace packages. Ref pytest-dev/pytest#12112.
1 parent 3fc7a93 commit 6ff02e0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pytest.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[pytest]
22
norecursedirs=dist build .tox .eggs
3-
addopts=--doctest-modules
3+
addopts=
4+
--doctest-modules
5+
--import-mode importlib
6+
consider_namespace_packages=true
47
filterwarnings=
58
## upstream
69

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ install_requires =
2020
[options.extras_require]
2121
testing =
2222
# upstream
23-
pytest >= 6
23+
pytest >= 6, != 8.1.1
2424
pytest-checkdocs >= 2.4
2525
pytest-cov
2626
pytest-mypy

0 commit comments

Comments
 (0)