[Python-checkins] cpython (merge 3.2 -> 3.3): revert accidental inclusion of subprocess tests
andrew.svetlov
python-checkins at python.org
Sat Oct 6 17:46:57 CEST 2012
http://hg.python.org/cpython/rev/5665806908c4
changeset: 79527:5665806908c4
branch: 3.3
parent: 79519:2e7a57cdd961
parent: 79526:c9695a0b0923
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Sat Oct 06 18:45:47 2012 +0300
summary:
revert accidental inclusion of subprocess tests
files:
Lib/test/test_subprocess.py | 22 ----------------------
1 files changed, 0 insertions(+), 22 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
@@ -192,28 +192,6 @@
p.wait()
self.assertEqual(p.stderr, None)
- @unittest.skipIf(mswindows, "path not included in Windows message")
- def test_path_in_arg_not_found_message(self):
- # Check that the error message displays the path not found when
- # args[0] is not found.
- self.assertRaisesRegex(FileNotFoundError, "notfound_blahblah",
- subprocess.Popen, ["notfound_blahblah"])
-
- @unittest.skipIf(mswindows, "path not displayed in Windows message")
- def test_path_in_executable_not_found_message(self):
- # Check that the error message displays the executable argument (and
- # not args[0]) when the executable argument is not found
- # (issue #16114).
- # We call sys.exit() inside the code to prevent the test runner
- # from hanging if the test fails and finds python.
- self.assertRaisesRegex(FileNotFoundError, "notfound_blahblah",
- subprocess.Popen, [sys.executable, "-c",
- "import sys; sys.exit(47)"],
- executable="notfound_blahblah")
- self.assertRaisesRegex(FileNotFoundError, "exenotfound_blahblah",
- subprocess.Popen, ["argnotfound_blahblah"],
- executable="exenotfound_blahblah")
-
# For use in the test_cwd* tests below.
def _normalize_cwd(self, cwd):
# Normalize an expected cwd (for Tru64 support).
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list