diff Lib/test/test_coding.py @ 46463:48289645cdef

Have test_coding conditionally remove test files instead of assuming that they are always there.
author Brett Cannon <bcannon@gmail.com>
date Thu, 17 Apr 2008 04:21:10 +0000
parents 4a6a7aea57f4
children 9c930a32cebb
line wrap: on
line diff
--- a/Lib/test/test_coding.py	Tue Apr 15 21:42:42 2008 +0000
+++ b/Lib/test/test_coding.py	Thu Apr 17 04:21:10 2008 +0000
@@ -1,6 +1,6 @@
 
 import test.test_support, unittest
-from test.test_support import TESTFN
+from test.test_support import TESTFN, unlink
 import os, sys
 
 class CodingTest(unittest.TestCase):
@@ -45,8 +45,8 @@
             __import__(TESTFN)
         finally:
             f.close()
-            os.remove(TESTFN+".py")
-            os.remove(TESTFN+".pyc")
+            unlink(TESTFN+".py")
+            unlink(TESTFN+".pyc")
             sys.path.pop(0)
 
 def test_main():