mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-127085: Add a test skip if multiprocessing isn't available (#128019)
Add a test skip if multiprocessing isn't available.
This commit is contained in:
parent
1183e4ce2f
commit
b9a492b809
1 changed files with 4 additions and 1 deletions
|
@ -739,7 +739,10 @@ class OtherTest(unittest.TestCase):
|
|||
class RacingTest(unittest.TestCase):
|
||||
def test_racing_getbuf_and_releasebuf(self):
|
||||
"""Repeatly access the memoryview for racing."""
|
||||
from multiprocessing.managers import SharedMemoryManager
|
||||
try:
|
||||
from multiprocessing.managers import SharedMemoryManager
|
||||
except ImportError:
|
||||
self.skipTest("Test requires multiprocessing")
|
||||
from threading import Thread
|
||||
|
||||
n = 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue