[Python-checkins] cpython (3.2): fix test for subprocess (#16644)

andrew.svetlov python-checkins at python.org
Wed Dec 26 22:36:32 CET 2012


http://hg.python.org/cpython/rev/39be1514c16c
changeset: 81075:39be1514c16c
branch: 3.2
parent: 81070:3801ee5d5d73
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Wed Dec 26 23:31:45 2012 +0200
summary:
 fix test for subprocess (#16644)
files:
 Lib/test/test_subprocess.py | 3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -2023,8 +2023,7 @@
 stderr=subprocess.PIPE) as proc:
 pass
 
- if c.exception.errno != errno.ENOENT: # ignore "no such file"
- raise c.exception
+ self.assertEqual(c.exception.errno, errno.ENOENT)
 
 
 def test_main():
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /