You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:39:05 UTC
[buildstream] 01/02: setup.cfg: Restrict pytest's config search to
the tests/ directory
This is an automated email from the ASF dual-hosted git repository.
not-in-ldap pushed a commit to branch tlater/nocover-usedevelop
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 23806fd9a0ccd874c4275b6bf6f4d167bf6a0f85
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Fri Oct 11 17:23:56 2019 +0100
setup.cfg: Restrict pytest's config search to the tests/ directory
This fixes issue #1121 - pytest would search the entire path for
conftest.py, which in an isolated run would include conftest.py twice.
This may still be an issue for sourcetest-nocover, but that isn't
currently supported, so this shouldn't regress.
---
setup.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.cfg b/setup.cfg
index 2264a31..42f869b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -11,7 +11,7 @@ parentdir_prefix = BuildStream-
test=pytest
[tool:pytest]
-addopts = --verbose --basetemp ./tmp --durations=20
+addopts = --verbose --basetemp ./tmp --durations=20 tests/
norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py
env =