From 046f64751bf205df695f11d298bfd87d553e1314 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Wed, 31 Jan 2024 13:59:14 +0100 Subject: [PATCH] Fix a duplicate assignment in test_config.py Taken from https://github.com/pytest-dev/pytest/pull/11885 that was closed. --- testing/test_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_config.py b/testing/test_config.py index 5a18b9e41..df109e5b6 100644 --- a/testing/test_config.py +++ b/testing/test_config.py @@ -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: