-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Scopes of several files are merged when specifying a config using -c #9703
Copy link
Copy link
Open
Labels
status: criticalgrave problem or usability issue that affects lots of usersgrave problem or usability issue that affects lots of userstopic: collectionrelated to the collection phaserelated to the collection phasetype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Metadata
Metadata
Assignees
Labels
status: criticalgrave problem or usability issue that affects lots of usersgrave problem or usability issue that affects lots of userstopic: collectionrelated to the collection phaserelated to the collection phasetype: bugproblem that needs to be addressedproblem that needs to be addressedtype: regressionindicates a problem that was introduced in a release which was working previouslyindicates a problem that was introduced in a release which was working previously
Type
Fields
Give feedbackNo fields configured for issues without a type.
Setup:
Python 3.9.9,
pip list:(basically just whatever
pip install pytestinstalls)Files:
Running with specifying the config from
configexplicitly executes the fixture for both tests:py.test -c config/pytest.ini -s -v tests/test_file1.py tests/test_file2.pyOmitting the config, using a config from the root directory
<dir>, or not specifying the test files explicitly (justpy.test -c config/pytest.ini -s -v):which is the behavior I would expect.
Downgrading to
pytest==6.2.5and running the command above (py.test -c config/pytest.ini -s -v tests/test_file1.py tests/test_file2.py) does not lead to the bug either. Interestingly enough, the "config" prefix is missing from the output:Must be some config-based grouping feature introduced in 7?