projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bb2a65
)
Remove tempfile after use in test_call_string.
author
Peter Astrand
<astrand@lysator.liu.se>
Wed, 17 Nov 2004 20:06:35 +0000
(20:06 +0000)
committer
Peter Astrand
<astrand@lysator.liu.se>
Wed, 17 Nov 2004 20:06:35 +0000
(20:06 +0000)
In test_args_string, remove the tempfile before assertEqual.
Lib/test/test_subprocess.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_subprocess.py
b/Lib/test/test_subprocess.py
index b0d82356bca5372640ab755f30f00d0a12de4e35..9f7184f057fba2f63c325c5a4fd9de0f72579228 100644
(file)
--- 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)