bpo-32206: Update pdb usage to include new module option (GH-5111)
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 @@
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'