Commit c85b7d3c authored by Berker Peksag's avatar Berker Peksag

Issue #19447: Suppress output of py_compile.compile().

parents a847edde a7614d08
......@@ -94,6 +94,7 @@ class PyCompileTests(unittest.TestCase):
def test_bad_coding(self):
bad_coding = os.path.join(os.path.dirname(__file__), 'bad_coding2.py')
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)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment