You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove stray [custom_section] in pytest.ini that causes PytestConfigWarning on every test run
Description
The pytest.ini file contains a stray [custom_section] with a value = test entry that is not recognized by pytest. This causes a PytestConfigWarning on every test run: "Unknown config option: value". While the tests still pass, this warning clutters the output and should be fixed by removing the unrecognized section.
Steps to Reproduce
Run any pytest command (e.g., pytest or make test)
Observe the warning in the output:
PytestConfigWarning: Unknown config option: value
Expected Behavior
No configuration warnings should appear when running tests.
Actual Behavior
A PytestConfigWarning is displayed for every test run due to an unrecognized configuration option.
Additional Context
The problematic lines in pytest.ini are:
[custom_section]value = test
Removing these lines will eliminate the warning without affecting test functionality, as the [custom_section] is not used by any part of the project.
This is a cleanup task that improves the developer experience by reducing noise in test output.
Activity