https://github.com/python/cpython/commit/1f233f56d6a5216b18e8c3f6b8c14d7e5d62c340
commit: 1f233f56d6a5216b18e8c3f6b8c14d7e5d62c340
branch: main
author: Sam Gross <[email protected]>
committer: colesbury <[email protected]>
date: 2025-02-11T16:59:36-05:00
summary:

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

The test modifies sys.modules and is not thread-safe.

files:
M Lib/test/test_hashlib.py

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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to