From 27c11a1b9494309090b4126ef4754b46fb11d1ce Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Tue, 11 Feb 2025 21:29:41 +0000 Subject: [PATCH] gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads 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 d1b04128bf6df3..0c1680cfbce36b 100644 --- a/Lib/test/test_hashlib.py +++ b/Lib/test/test_hashlib.py @@ -253,6 +253,7 @@ def test_unknown_hash(self): 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')