https://github.com/python/cpython/commit/b9a492b809d8765ee365a5dd3c6ba4e5130a80af
commit: b9a492b809d8765ee365a5dd3c6ba4e5130a80af
branch: main
author: Russell Keith-Magee <[email protected]>
committer: freakboy3742 <[email protected]>
date: 2024-12-17T08:18:33Z
summary:
gh-127085: Add a test skip if multiprocessing isn't available (#128019)
Add a test skip if multiprocessing isn't available.
files:
M Lib/test/test_memoryview.py
diff --git a/Lib/test/test_memoryview.py b/Lib/test/test_memoryview.py
index 856e17918048e4..61b068c630c7ce 100644
--- a/Lib/test/test_memoryview.py
+++ b/Lib/test/test_memoryview.py
@@ -739,7 +739,10 @@ def test_picklebuffer_reference_loop(self):
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
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]