We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 612c378 commit 37158f5Copy full SHA for 37158f5
testing/test_pdb.py
@@ -528,15 +528,13 @@ def do_debug(self, arg):
528
import sys
529
import types
530
531
- newglobals = {
532
- 'Pdb': self.__class__, # NOTE: different with pdb.Pdb
533
- 'sys': sys,
534
- }
535
if sys.version_info < (3, ):
536
do_debug_func = pdb.Pdb.do_debug.im_func
537
else:
538
do_debug_func = pdb.Pdb.do_debug
539
+ newglobals = do_debug_func.__globals__.copy()
+ newglobals['Pdb'] = self.__class__
540
orig_do_debug = types.FunctionType(
541
do_debug_func.__code__, newglobals,
542
do_debug_func.__name__, do_debug_func.__defaults__,
0 commit comments