We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_compileall
1 parent f8a7910 commit 892155dCopy full SHA for 892155d
Lib/test/test_compileall.py
@@ -369,7 +369,9 @@ def test_strip_only_invalid(self):
369
script = script_helper.make_script(path, "test", "1 / 0")
370
bc = importlib.util.cache_from_source(script)
371
stripdir = os.path.join(self.directory, *(fullpath[:2] + ['fake']))
372
- compileall.compile_dir(path, quiet=True, stripdir=stripdir)
+ with support.captured_stdout() as out:
373
+ compileall.compile_dir(path, quiet=True, stripdir=stripdir)
374
+ self.assertIn("not a valid prefix", out.getvalue())
375
rc, out, err = script_helper.assert_python_failure(bc)
376
expected_not_in = os.path.join(self.directory, *fullpath[2:])
377
self.assertIn(
0 commit comments