From: Sam Gross Date: Tue, 11 Feb 2025 21:59:36 +0000 (-0500) Subject: gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads... X-Git-Tag: v3.14.0a6~460 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f233f56d6a5216b18e8c3f6b8c14d7e5d62c340;p=thirdparty%2FPython%2Fcpython.git gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads (GH-130018) The test modifies sys.modules and is not thread-safe. --- diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index d1b04128bf6d..0c1680cfbce3 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -253,6 +253,7 @@ class HashLibTestCase(unittest.TestCase): def test_new_upper_to_lower(self): self.assertEqual(hashlib.new("SHA256").name, "sha256") + @support.thread_unsafe("modifies sys.modules") def test_get_builtin_constructor(self): get_builtin_constructor = getattr(hashlib, '__get_builtin_constructor')