File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1638,9 +1638,11 @@ def help():
16381638 pydoc .pager (__doc__ )
16391639
16401640_usage = """\
1641- usage: pdb.py [-c command] ... pyfile [arg] ...
1641+ usage: pdb.py [-c command] ... [-m module | pyfile] [arg] ...
16421642
1643- Debug the Python program given by pyfile.
1643+ Debug the Python program given by pyfile. Alternatively,
1644+ an executable module or package to debug can be specified using
1645+ the -m switch.
16441646
16451647Initial commands are read from .pdbrc files in your home directory
16461648and in the current directory, if they exist. Commands supplied with
Original file line number Diff line number Diff line change @@ -1182,7 +1182,10 @@ def test_run_pdb_with_pdb(self):
11821182 quit
11831183 """
11841184 stdout , stderr = self ._run_pdb (["-m" , "pdb" ], commands )
1185- self .assertIn ("Debug the Python program given by pyfile." , stdout .splitlines ())
1185+ self .assertIn (
1186+ pdb ._usage ,
1187+ stdout .replace ('\r ' , '' ) # remove \r for windows
1188+ )
11861189
11871190 def test_module_without_a_main (self ):
11881191 module_name = 't_main'
You can’t perform that action at this time.
0 commit comments