summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2019-12-24 12:18:45 +0000
committerChandan Singh <chandan@chandansingh.net>2019-12-24 15:26:22 +0000
commit2256ba6eea248b4e4f3fe827d61431fa6d63229e (patch)
treed26c150e4b6332c24bc186469cecb850f78dc1b9 /setup.cfg
parent7265eebacfa2f19cbd93f1e89f98ea211654f7bf (diff)
downloadbuildstream-2256ba6eea248b4e4f3fe827d61431fa6d63229e.tar.gz
setup.cfg: Don't collect tests from src directory
Generally we don't have any tests in the `src` directory so we don't need to collect anything from that directory. The only exception to this are the `sourcetests`, but they add their own collection hook so they are not affected by this. This fixes an issue where pytest gets confused upon finding two different `conftest.py` modules - one in the `src` directory and one in the virtual environment. Fixes #1121.
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 8a1d0ce21..481d6b771 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,7 +9,7 @@ parentdir_prefix = BuildStream-
[tool:pytest]
addopts = --verbose --basetemp ./tmp --durations=20 --timeout=900
-norecursedirs = tests/integration/project integration-cache tmp __pycache__ .eggs
+norecursedirs = src tests/integration/project integration-cache tmp __pycache__ .eggs
python_files = tests/*/*.py
env =
D:BST_TEST_SUITE=True