summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-02-07 17:03:15 (GMT)
committerGeorg Brandl <georg@python.org>2010-02-07 17:03:15 (GMT)
commita4f46e129294c686ef1effdd89c459bd9a624e6d (patch)
treed8cf84a6f4a9a1a3e7ad10f8daec0ecd5f5674cb /Lib/test/test_long.py
parentdc3694bee021480980d5b66a93f69ce137ee5be4 (diff)
downloadcpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.zip
cpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.tar.gz
cpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.tar.bz2
Remove unused imports in test modules.
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 5c20dfe..e7bedeb 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -583,8 +583,6 @@ class LongTest(unittest.TestCase):
# ----------------------------------- tests of auto int->long conversion
def test_auto_overflow(self):
- import math, sys
-
special = [0, 1, 2, 3, sys.maxint-1, sys.maxint, sys.maxint+1]
sqrt = int(math.sqrt(sys.maxint))
special.extend([sqrt-1, sqrt, sqrt+1])
@@ -704,8 +702,6 @@ class LongTest(unittest.TestCase):
self.assertEqual(long(float(x)), y)
def test_float_overflow(self):
- import math
-
for x in -2.0, -1.0, 0.0, 1.0, 2.0:
self.assertEqual(float(long(x)), x)
@@ -735,8 +731,6 @@ class LongTest(unittest.TestCase):
"float(shuge) should not equal int(shuge)")
def test_logs(self):
- import math
-
LOG10E = math.log10(math.e)
for exp in range(10) + [100, 1000, 10000]:
@@ -756,7 +750,6 @@ class LongTest(unittest.TestCase):
def test_mixed_compares(self):
eq = self.assertEqual
- import math
# We're mostly concerned with that mixing floats and longs does the
# right stuff, even when longs are too large to fit in a float.