]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-128657: Skip test_get_builtin_constructor when running with --parallel-threads...
authorSam Gross <colesbury@gmail.com>
Tue, 11 Feb 2025 21:59:36 +0000 (16:59 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2025 21:59:36 +0000 (16:59 -0500)
The test modifies sys.modules and is not thread-safe.

Lib/test/test_hashlib.py

index d1b04128bf6df3d4090844240e381ca5c2b51057..0c1680cfbce36b07c830e6756c1be3e0cd6f2f09 100644 (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')