From: Kumar Aditya Date: Sun, 30 Mar 2025 11:08:42 +0000 (+0530) Subject: gh-127945: mark `TestLocalization` as thread unsafe in ctypes (#131899) X-Git-Tag: v3.14.0a7~140 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eaffc34d3ce38710d633f7246d3e15aaddee63d1;p=thirdparty%2FPython%2Fcpython.git gh-127945: mark `TestLocalization` as thread unsafe in ctypes (#131899) --- diff --git a/Lib/test/test_ctypes/test_dlerror.py b/Lib/test/test_ctypes/test_dlerror.py index 1c1b2aab3d58..8af34e62b94f 100644 --- a/Lib/test/test_ctypes/test_dlerror.py +++ b/Lib/test/test_ctypes/test_dlerror.py @@ -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):