From 1f233f56d6a5216b18e8c3f6b8c14d7e5d62c340 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Tue, 11 Feb 2025 16:59:36 -0500 Subject: gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads (GH-130018) The test modifies sys.modules and is not thread-safe. --- Lib/test/test_hashlib.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_hashlib.py b/Lib/test/test_hashlib.py index d1b0412..0c1680c 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') -- cgit v0.12