summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rwxr-xr-xLib/test/test_fcntl.py2
-rw-r--r--Lib/test/test_fork1.py5
-rw-r--r--Lib/test/test_math.py6
3 files changed, 10 insertions, 3 deletions
diff --git a/Lib/test/test_fcntl.py b/Lib/test/test_fcntl.py
index 3da079df0a..1fa0aa2f83 100755
--- a/Lib/test/test_fcntl.py
+++ b/Lib/test/test_fcntl.py
@@ -21,7 +21,7 @@ if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin1',
'bsdos2', 'bsdos3', 'bsdos4',
'openbsd', 'openbsd2'):
lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
-elif sys.platform in ['aix3', 'aix4', 'hp-uxB']:
+elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
else:
lockdata = struct.pack('hhllhh', FCNTL.F_WRLCK, 0, 0, 0, 0, 0)
diff --git a/Lib/test/test_fork1.py b/Lib/test/test_fork1.py
index de9f7a947a..51e6c58e1e 100644
--- a/Lib/test/test_fork1.py
+++ b/Lib/test/test_fork1.py
@@ -48,7 +48,10 @@ def main():
prefork_lives = alive.copy()
- cpid = os.fork()
+ if sys.platform in ['unixware7']:
+ cpid = os.fork1()
+ else:
+ cpid = os.fork()
if cpid == 0:
# Child
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 8419a1f93b..6f742bf6d5 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -1,6 +1,7 @@
# Python test set -- math module
# XXXX Should not do tests around zero only
+import sys
from test_support import *
seps='1e-05'
@@ -35,7 +36,10 @@ testit('atan(1)', math.atan(1), math.pi/4)
print 'atan2'
testit('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
testit('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
-testit('atan2(0, 1)', math.atan2(0, 1), 0)
+if sys.platform in ['unixware7']:
+ testit('atan2(0, 1)', math.atan2(0, 1), math.pi)
+else:
+ testit('atan2(0, 1)', math.atan2(0, 1), 0)
testit('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
testit('atan2(1, 0)', math.atan2(1, 0), math.pi/2)