summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_math.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-04-12 00:24:41 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-04-12 00:24:41 (GMT)
commit4642cb9ac9636dec1e939a75f5da3fc263b51326 (patch)
tree5b4a1249eded835860615d8e9691ce2f5f483eab /Lib/test/test_math.py
parentac6985f42f36b24ea7438ae6858d1d966fdf41a2 (diff)
downloadcpython-4642cb9ac9636dec1e939a75f5da3fc263b51326.zip
cpython-4642cb9ac9636dec1e939a75f5da3fc263b51326.tar.gz
cpython-4642cb9ac9636dec1e939a75f5da3fc263b51326.tar.bz2
Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless of
platform. If it returns pi on the unixware7 platform, they have a bug in their libm atan2.
Diffstat (limited to 'Lib/test/test_math.py')
-rw-r--r--Lib/test/test_math.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
index 6f742bf..8419a1f 100644
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -1,7 +1,6 @@
# Python test set -- math module
# XXXX Should not do tests around zero only
-import sys
from test_support import *
seps='1e-05'
@@ -36,10 +35,7 @@ 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)
-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(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)