From d4f115d069c04842a253b0591521862e360b4490 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 30 Mar 2024 18:38:35 -0400 Subject: [PATCH] Apply workaround for regression in pytest 8.1.1. Ref pytest-dev/pytest#12112. --- pytest.ini | 1 + setup.cfg | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pytest.ini b/pytest.ini index 0e4d986..8a38f28 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,6 +3,7 @@ norecursedirs=dist build .tox .eggs addopts= --doctest-modules --import-mode importlib +consider_namespace_packages=true doctest_optionflags=ALLOW_UNICODE ELLIPSIS filterwarnings= ## upstream diff --git a/setup.cfg b/setup.cfg index 4da1e21..08d1159 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,6 +29,8 @@ install_requires = testing = # upstream pytest >= 6 + # workaround for pytest-dev/pytest#12112 + pytest@git+https://github.com/pytest-dev/pytest@refs/pull/12169/head pytest-checkdocs >= 2.4 pytest-cov pytest-mypy