Kaydet (Commit) dc3e06ce authored tarafından Brett Cannon's avatar Brett Cannon

Have test_coding conditionally remove test files instead of assuming that they

are always there.
üst 7ab6be21
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 @@ class CodingTest(unittest.TestCase):
__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():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment