]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-104057: Fix direct invocation of test_support (GH-104069)
authorKirill Podoprigora <kirill.bast9@mail.ru>
Thu, 11 May 2023 14:44:39 +0000 (17:44 +0300)
committerGitHub <noreply@github.com>
Thu, 11 May 2023 14:44:39 +0000 (09:44 -0500)
Lib/test/test_support.py

index 7738ca5e9b433d92cef771a887afeceaa31b57ca..85d692f3097494802a73255c3d34cffbed8b32d6 100644 (file)
@@ -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