gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads (GH-130018)

The test modifies sys.modules and is not thread-safe.
This commit is contained in:
Sam Gross 2025-02-11 16:59:36 -05:00 committed by GitHub
parent 1a8082a4bf
commit 1f233f56d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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')