summaryrefslogtreecommitdiff
path: root/Lib/test/test_complex.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 +0000
committerBenjamin Peterson <benjamin@python.org>2008-05-20 21:35:26 +0000
commit191bb1a4e6297cc84aa247fb3039fca3defcb03a (patch)
treea173e04b260943dcad3348a95f52ce4ee10f9886 /Lib/test/test_complex.py
parent8c10100984e3a1f6c753345a552369a902c8d78f (diff)
downloadcpython-191bb1a4e6297cc84aa247fb3039fca3defcb03a.tar.gz
#2621 rename test.test_support to test.support
Diffstat (limited to 'Lib/test/test_complex.py')
-rw-r--r--Lib/test/test_complex.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index fbed4f285c..44c8999b6f 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -1,5 +1,5 @@
import unittest, os
-from test import test_support
+from test import support
from random import random
from math import atan2
@@ -339,16 +339,16 @@ class ComplexTest(unittest.TestCase):
fo = None
try:
- fo = open(test_support.TESTFN, "w")
+ fo = open(support.TESTFN, "w")
print(a, b, file=fo)
fo.close()
- fo = open(test_support.TESTFN, "r")
+ fo = open(support.TESTFN, "r")
self.assertEqual(fo.read(), ("%s %s\n" % (a, b)))
finally:
if (fo is not None) and (not fo.closed):
fo.close()
try:
- os.remove(test_support.TESTFN)
+ os.remove(support.TESTFN)
except (OSError, IOError):
pass
@@ -360,7 +360,7 @@ class ComplexTest(unittest.TestCase):
self.assertEquals(atan2(z2.imag, -1.), atan2(-0., -1.))
def test_main():
- test_support.run_unittest(ComplexTest)
+ support.run_unittest(ComplexTest)
if __name__ == "__main__":
test_main()