summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
commit1b37e8728c654efe928b9bc028b2f4f5621a35ea (patch)
tree78762df4462cceecbc4c155c362986288fc2dfbb /Lib/test/test_long.py
parent7a4f7d92f04e4d8c8d95e9735698cc9273d43a9d (diff)
downloadcpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.zip
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.gz
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.bz2
Merged revisions 78093 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 3c6b215..eea67e6 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -402,8 +402,6 @@ class LongTest(unittest.TestCase):
self.assertEqual(int(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(int(x)), x)
@@ -435,8 +433,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 list(range(10)) + [100, 1000, 10000]:
@@ -456,7 +452,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.