mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
gh-132719: Skip multiprocessing test if missing ctypes (#132842)
Skip test_lock_locked_2processes() if multiprocessing.sharedctypes is missing (need ctypes).
This commit is contained in:
parent
1aaca7ab48
commit
b2e666f30a
1 changed files with 1 additions and 0 deletions
|
|
@ -1516,6 +1516,7 @@ def _test_lock_locked_2processes(cls, lock, event, res):
|
|||
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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue