Skip to content

Commit 1f233f5

Browse files
authored
gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads (GH-130018)
The test modifies sys.modules and is not thread-safe.
1 parent 1a8082a commit 1f233f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_hashlib.py

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def test_unknown_hash(self):
253253
def test_new_upper_to_lower(self):
254254
self.assertEqual(hashlib.new("SHA256").name, "sha256")
255255

256+
@support.thread_unsafe("modifies sys.modules")
256257
def test_get_builtin_constructor(self):
257258
get_builtin_constructor = getattr(hashlib,
258259
'__get_builtin_constructor')

0 commit comments

Comments
 (0)