From 2256ba6eea248b4e4f3fe827d61431fa6d63229e Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Tue, 24 Dec 2019 12:18:45 +0000 Subject: 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. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.cfg') 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 -- cgit v1.2.1