Index: Lib/test/test_compileall.py =================================================================== --- Lib/test/test_compileall.py (revision 86692) +++ Lib/test/test_compileall.py (working copy) @@ -220,10 +220,12 @@ self.assertTrue(os.path.exists(imp.cache_from_source(sourcefile))) def test_quiet(self): - noise = subprocess.getoutput('{} -m compileall {}'.format( - sys.executable, self.pkgdir)) - quiet = subprocess.getoutput(('{} -m compileall -f -q {}'.format( - sys.executable, self.pkgdir))) + noise = subprocess.check_output( + [sys.executable, '-m', 'compileall', self.pkgdir], + stderr=subprocess.STDOUT) + quiet = subprocess.check_output( + [sys.executable, '-m', 'compileall', '-f', '-q', self.pkgdir], + stderr=subprocess.STDOUT) self.assertGreater(len(noise), len(quiet)) def test_regexp(self):