From: Victor Stinner Date: Wed, 23 Apr 2025 14:36:25 +0000 (+0200) Subject: gh-132719: Skip multiprocessing test if missing ctypes (#132842) X-Git-Tag: v3.14.0b1~344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2e666f30aa66b3f5e7ccbcf4e5f21e2d89e39a8;p=thirdparty%2FPython%2Fcpython.git gh-132719: Skip multiprocessing test if missing ctypes (#132842) Skip test_lock_locked_2processes() if multiprocessing.sharedctypes is missing (need ctypes). --- diff --git a/Lib/test/_test_multiprocessing.py b/Lib/test/_test_multiprocessing.py index 54b942e76d78..d4177c5e8fe5 100644 --- a/Lib/test/_test_multiprocessing.py +++ b/Lib/test/_test_multiprocessing.py @@ -1516,6 +1516,7 @@ class _TestLock(BaseTestCase): res.value = lock.locked() event.set() + @unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes') def test_lock_locked_2processes(self): if self.TYPE != 'processes': self.skipTest('test not appropriate for {}'.format(self.TYPE))