mirror of
https://github.com/python/cpython.git
synced 2025-09-06 17:02:26 +00:00
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:
parent
1007aab133
commit
e2c69d36d1
1 changed files with 1 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue