Skip to content

Commit

Permalink
Have test_coding conditionally remove test files instead of assuming …
Browse files Browse the repository at this point in the history
…that they

are always there.
  • Loading branch information
brettcannon committed Apr 17, 2008
1 parent 7ab6be2 commit dc3e06c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lib/test/test_coding.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down Expand Up @@ -45,8 +45,8 @@ def test_file_parse(self):
__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():
Expand Down

0 comments on commit dc3e06c

Please sign in to comment.