summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_popen2.py
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-01-30 18:35:32 (GMT)
committerMoshe Zadka <moshez@math.huji.ac.il>2001-01-30 18:35:32 (GMT)
commitfc3fc337d04df860de3c1a3a0c1f2d53ffc21c09 (patch)
treed272ae8830367b8707df674a7647983a83bfbda6 /Lib/test/test_popen2.py
parent87eb4f8bb35be113017fcb8e703677a0a056234d (diff)
downloadcpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.zip
cpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.tar.gz
cpython-fc3fc337d04df860de3c1a3a0c1f2d53ffc21c09.tar.bz2
Checking in patch #103478 -- makes popen2 and fork1 tested on BeOS.
Tested for not breaking builds on Linux.
Diffstat (limited to 'Lib/test/test_popen2.py')
-rw-r--r--Lib/test/test_popen2.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_popen2.py b/Lib/test/test_popen2.py
index 1215847..799df4a 100644
--- a/Lib/test/test_popen2.py
+++ b/Lib/test/test_popen2.py
@@ -4,6 +4,8 @@
"""
import os
+import sys
+from test_support import TestSkipped
# popen2 contains its own testing routine
# which is especially useful to see if open files
@@ -12,6 +14,11 @@ import os
def main():
print "Test popen2 module:"
+ if sys.platform[:4] == 'beos' and __name__ != '__main__':
+ # Locks get messed up or something. Generally we're supposed
+ # to avoid mixing "posix" fork & exec with native threads, and
+ # they may be right about that after all.
+ raise TestSkipped, "popen2() doesn't work during import on BeOS"
try:
from os import popen
except ImportError: