]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127945: mark `TestLocalization` as thread unsafe in ctypes (#131899)
authorKumar Aditya <kumaraditya@python.org>
Sun, 30 Mar 2025 11:08:42 +0000 (16:38 +0530)
committerGitHub <noreply@github.com>
Sun, 30 Mar 2025 11:08:42 +0000 (11:08 +0000)
Lib/test/test_ctypes/test_dlerror.py

index 1c1b2aab3d589eabe02bf5e38bf92bc7207ae6ce..8af34e62b94faa3b234b588934ef8928e90bcf8e 100644 (file)
@@ -120,7 +120,7 @@ class TestNullDlsym(unittest.TestCase):
             # Assert that the IFUNC was called
             self.assertEqual(os.read(pipe_r, 2), b'OK')
 
-
+@test.support.thread_unsafe('setlocale is not thread-safe')
 @unittest.skipUnless(os.name != 'nt', 'test requires dlerror() calls')
 class TestLocalization(unittest.TestCase):