[Python-checkins] cpython (merge 3.4 -> default): Issue #19447: Suppress output of py_compile.compile().
berker.peksag
python-checkins at python.org
Mon Sep 1 11:29:34 CEST 2014
http://hg.python.org/cpython/rev/a8ef9d7c4d20
changeset: 92295:a8ef9d7c4d20
parent: 92293:c81e2b6eccd8
parent: 92294:2d0bcb653085
user: Berker Peksag <berker.peksag at gmail.com>
date: Mon Sep 01 12:30:17 2014 +0300
summary:
Issue #19447: Suppress output of py_compile.compile().
files:
Lib/test/test_py_compile.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
--- a/Lib/test/test_py_compile.py
+++ b/Lib/test/test_py_compile.py
@@ -94,7 +94,8 @@
def test_bad_coding(self):
bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py')
- self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
+ with support.captured_stderr():
+ self.assertIsNone(py_compile.compile(bad_coding, doraise=False))
self.assertFalse(os.path.exists(
importlib.util.cache_from_source(bad_coding)))
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list