stop unit test from leaving myfile.py behind

This commit is contained in:
Earl Hathaway
2017-04-22 17:48:51 -07:00
parent 037758e20d
commit 7e2d1f341b
+2
View File
@@ -18,6 +18,8 @@ class TestExecutor(TestCase):
def tearDown(self):
shutil.rmtree(self.test_dir)
if os.path.exists('myfile.py'):
os.remove('myfile.py')
def test_suppress_output(self):
output = Executor.exec_cmd_only_success(['python', self.code_file])