diff options
Diffstat (limited to 'Lib/test/test_complex.py')
-rw-r--r-- | Lib/test/test_complex.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index a857354..6441208 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py @@ -1,4 +1,4 @@ -import unittest, os +import unittest from test import support from random import random @@ -395,10 +395,7 @@ class ComplexTest(unittest.TestCase): finally: if (fo is not None) and (not fo.closed): fo.close() - try: - os.remove(support.TESTFN) - except (OSError, IOError): - pass + support.unlink(support.TESTFN) def test_getnewargs(self): self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0)) |