From: Kirill Podoprigora Date: Thu, 11 May 2023 14:44:39 +0000 (+0300) Subject: gh-104057: Fix direct invocation of test_support (GH-104069) X-Git-Tag: v3.12.0b1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=27419a71b5aa18baf24f4e640c5a6e8df9338928;p=thirdparty%2FPython%2Fcpython.git gh-104057: Fix direct invocation of test_support (GH-104069) --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index 7738ca5e9b43..85d692f30974 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -30,7 +30,7 @@ class TestSupport(unittest.TestCase): "test.support.warnings_helper", like=".*used in test_support.*" ) cls._test_support_token = support.ignore_deprecations_from( - "test.test_support", like=".*You should NOT be seeing this.*" + __name__, like=".*You should NOT be seeing this.*" ) assert len(warnings.filters) == orig_filter_len + 2