summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2008-06-18 13:29:52 (GMT)
committerJesse Noller <jnoller@gmail.com>2008-06-18 13:29:52 (GMT)
commit18623825d25b0f8f3b4bf96c1d5c4c2977a94004 (patch)
tree38dd82b87e8685ccdb23cfd3944b09e3388861cd /Lib
parent5da652e374eef3eeb7483188ddfe8c84033b2a23 (diff)
downloadcpython-18623825d25b0f8f3b4bf96c1d5c4c2977a94004.zip
cpython-18623825d25b0f8f3b4bf96c1d5c4c2977a94004.tar.gz
cpython-18623825d25b0f8f3b4bf96c1d5c4c2977a94004.tar.bz2
Attempt RLock creation prior to test execution on Linux, if it raises the OSError in issue 3111, skip the test suite
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_multiprocessing.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 66df2ab..0d53b3f 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -1755,9 +1755,12 @@ globals().update(testcases_threads)
#
def test_main(run=None):
- if sys.platform.startswith("linux") and not os.path.exists("/dev/shm"):
- from test.test_support import TestSkipped
- raise TestSkipped("Missing required /dev/shm device on Linux!")
+ if sys.platform.startswith("linux"):
+ try:
+ lock = multiprocessing.RLock()
+ except OSError:
+ from test.test_support import TestSkipped
+ raise TestSkipped("OSError raises on RLock creation, see issue 3111!")
if run is None:
from test.test_support import run_unittest as run