summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorPeter Astrand <astrand@lysator.liu.se>2004-11-17 20:06:35 (GMT)
committerPeter Astrand <astrand@lysator.liu.se>2004-11-17 20:06:35 (GMT)
commit2224be64dc1d62906ec1b3c1ab2a4986212c68ed (patch)
tree7ec184d1db1582eacefeca7333b43ec59ab03859 /Lib/test/test_subprocess.py
parent0bb2a65dbdbad6731dfc6a942220e4438e393b85 (diff)
downloadcpython-2224be64dc1d62906ec1b3c1ab2a4986212c68ed.zip
cpython-2224be64dc1d62906ec1b3c1ab2a4986212c68ed.tar.gz
cpython-2224be64dc1d62906ec1b3c1ab2a4986212c68ed.tar.bz2
Remove tempfile after use in test_call_string.
In test_args_string, remove the tempfile before assertEqual.
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index b0d8235..9f7184f 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -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)