-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
pytest 8.1.1 (just released) contains a consider_namespace_packages argument for import_path. The changes added in #241 use this argument for pytest >=8.2:
pytest-doctestplus/pytest_doctestplus/plugin.py
Lines 268 to 271 in 9b747b8
| if PYTEST_GE_8_2: | |
| consider_namespace_packages = self.config.getini("consider_namespace_packages") | |
| module = import_path(fspath, mode=mode, root=self.config.rootpath, | |
| consider_namespace_packages=consider_namespace_packages) |
but unfortunately the above argument change was included in a "bugfix" 8.1.1 version. This produces errors like the following:
.tox/py39-parallel-cov/lib/python3.9/site-packages/pytest_doctestplus/plugin.py:268: in collect
module = import_path(fspath, mode=mode, root=self.config.rootpath)
E TypeError: import_path() missing 1 required keyword-only argument: 'consider_namespace_packages'
when running pytest 8.1.1 with pytest-doctestplus 1.2.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels