summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2008-09-30 00:15:45 (GMT)
committerJesse Noller <jnoller@gmail.com>2008-09-30 00:15:45 (GMT)
commit37040cdace1982772e5f35e4acfa13861d72065d (patch)
tree07b4887aaac30870277beb6afe45a1e5652ed539 /Lib/test
parente563aa4383df36cefe5c85c2a85b9008f54df048 (diff)
downloadcpython-37040cdace1982772e5f35e4acfa13861d72065d.zip
cpython-37040cdace1982772e5f35e4acfa13861d72065d.tar.gz
cpython-37040cdace1982772e5f35e4acfa13861d72065d.tar.bz2
issue3770: if SEM_OPEN is 0, disable the mp.synchronize module, rev. Nick Coghlan, Damien Miller
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/regrtest.py3
-rw-r--r--Lib/test/test_multiprocessing.py8
2 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index f185111..996395b 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -1047,6 +1047,7 @@ _expectations = {
test_tcl
test_timeout
test_urllibnet
+ test_multiprocessing
""",
'aix5':
"""
@@ -1077,6 +1078,7 @@ _expectations = {
test_ossaudiodev
test_pep277
test_tcl
+ test_multiprocessing
""",
'netbsd3':
"""
@@ -1092,6 +1094,7 @@ _expectations = {
test_ossaudiodev
test_pep277
test_tcl
+ test_multiprocessing
""",
}
_expectations['freebsd5'] = _expectations['freebsd4']
diff --git a/Lib/test/test_multiprocessing.py b/Lib/test/test_multiprocessing.py
index 214a420..b0746e9 100644
--- a/Lib/test/test_multiprocessing.py
+++ b/Lib/test/test_multiprocessing.py
@@ -18,6 +18,14 @@ import socket
import random
import logging
+
+# Work around broken sem_open implementations
+try:
+ import multiprocessing.synchronize
+except ImportError, e:
+ from test.test_support import TestSkipped
+ raise TestSkipped(e)
+
import multiprocessing.dummy
import multiprocessing.connection
import multiprocessing.managers