gh-132719: Skip multiprocessing test if missing ctypes (#132846)

Skip test_rlock_locked_2processes() if multiprocessing.sharedctypes
is missing (need ctypes).
This commit is contained in:
Victor Stinner 2025-04-23 20:33:15 +02:00 committed by GitHub
parent 1007aab133
commit e2c69d36d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1601,6 +1601,7 @@ class _TestLock(BaseTestCase):
self.assertFalse(lock.locked())
self.assertRaises((AssertionError, RuntimeError), lock.release)
@unittest.skipUnless(HAS_SHAREDCTYPES, 'needs sharedctypes')
def test_rlock_locked_2processes(self):
if self.TYPE != 'processes':
self.skipTest('test not appropriate for {}'.format(self.TYPE))