Index: Lib/test/test_compileall.py =================================================================== --- Lib/test/test_compileall.py (revision 86565) +++ Lib/test/test_compileall.py (working copy) @@ -184,6 +184,11 @@ self.assertTrue(os.path.exists(cachedir)) self.assertFalse(os.path.exists(cachecachedir)) + def test_help(self): + proc = subprocess.Popen((sys.executable, '-m', 'compileall', '-h'), + stdout=subprocess.PIPE) + self.assertTrue(proc.communicate ()[0].startswith (b"usage:")) + self.assertEqual(proc.wait(), 0) def test_main(): support.run_unittest(