diff options
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r-- | Lib/test/test_pdb.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py index 0cd235e..85b47d5 100644 --- a/Lib/test/test_pdb.py +++ b/Lib/test/test_pdb.py @@ -1182,7 +1182,10 @@ class PdbTestCase(unittest.TestCase): quit """ stdout, stderr = self._run_pdb(["-m", "pdb"], commands) - self.assertIn("Debug the Python program given by pyfile.", stdout.splitlines()) + self.assertIn( + pdb._usage, + stdout.replace('\r', '') # remove \r for windows + ) def test_module_without_a_main(self): module_name = 't_main' |