From 7e2d1f341bc298df5ba7b173250cd21afd974e46 Mon Sep 17 00:00:00 2001 From: Earl Hathaway Date: Sat, 22 Apr 2017 17:48:51 -0700 Subject: [PATCH] stop unit test from leaving myfile.py behind --- tests/test_executor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_executor.py b/tests/test_executor.py index 2d6f7dabb..ae22e4347 100644 --- a/tests/test_executor.py +++ b/tests/test_executor.py @@ -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])