cpython: 2d0bcb653085 (original) (raw)
Mercurial > cpython
changeset 92294:2d0bcb653085 3.4
Issue #19447: Suppress output of py_compile.compile(). [#19447]
Berker Peksag berker.peksag@gmail.com | |
---|---|
date | Mon, 01 Sep 2014 12:29:53 +0300 |
parents | 3eaba8a0cb3a |
children | a8ef9d7c4d20 45d9f4172451 |
files | Lib/test/test_py_compile.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_py_compile.py 3 |
line wrap: on
line diff
--- a/Lib/test/test_py_compile.py +++ b/Lib/test/test_py_compile.py @@ -94,7 +94,8 @@ class PyCompileTests(unittest.TestCase): 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))[](#l1.7)
with support.captured_stderr():[](#l1.8)
self.assertIsNone(py_compile.compile(bad_coding, doraise=False))[](#l1.9) self.assertFalse(os.path.exists([](#l1.10) importlib.util.cache_from_source(bad_coding)))[](#l1.11)