Commit 0454eb1d authored by Peter Astrand's avatar Peter Astrand

Remove tempfile after use in test_call_string.

In test_args_string, remove the tempfile before assertEqual.
parent 1f3a7478
......@@ -436,8 +436,8 @@ class ProcessTestCase(unittest.TestCase):
os.chmod(fname, 0700)
p = subprocess.Popen(fname)
p.wait()
self.assertEqual(p.returncode, 47)
os.remove(fname)
self.assertEqual(p.returncode, 47)
def test_invalid_args(self):
# invalid arguments should raise ValueError
......@@ -477,6 +477,7 @@ class ProcessTestCase(unittest.TestCase):
os.close(f)
os.chmod(fname, 0700)
rc = subprocess.call(fname)
os.remove(fname)
self.assertEqual(rc, 47)
......
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