Fix a duplicate assignment in test_config.py

Taken from https://github.com/pytest-dev/pytest/pull/11885 that was closed.
This commit is contained in:
Pierre Sassoulas 2024-01-31 13:59:14 +01:00
parent 4546d5445a
commit 046f64751b
1 changed files with 1 additions and 1 deletions

View File

@ -2109,7 +2109,7 @@ class TestPytestPluginsVariable:
args = ("--pyargs", "pkg") if use_pyargs else ()
res = pytester.runpytest(*args)
assert res.ret == (0 if use_pyargs else 2)
msg = msg = (
msg = (
"Defining 'pytest_plugins' in a non-top-level conftest is no longer supported"
)
if use_pyargs: