Skip to content

Commit 99bffa2

Browse files
WillAydjorisvandenbossche
authored andcommitted
CLN: Removed debugging code (#25647)
1 parent e2d0ad0 commit 99bffa2

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

pandas/tests/computation/test_eval.py

-3
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ def check_complex_cmp_op(self, lhs, cmp1, rhs, binop, cmp2):
253253
# local_dict={'lhs': lhs, 'rhs': rhs},
254254
# engine=self.engine, parser=self.parser)
255255
# except AssertionError:
256-
# import ipdb
257-
#
258-
# ipdb.set_trace()
259256
# raise
260257
else:
261258
expected = _eval_single_bin(

pandas/tests/internals/test_internals.py

-1
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,6 @@ class TestIndexing(object):
865865

866866
def test_get_slice(self):
867867
def assert_slice_ok(mgr, axis, slobj):
868-
# import pudb; pudb.set_trace()
869868
mat = mgr.as_array()
870869

871870
# we maybe using an ndarray to test slicing and

pandas/util/testing.py

-29
Original file line numberDiff line numberDiff line change
@@ -638,35 +638,6 @@ def set_defaultencoding(encoding):
638638
sys.setdefaultencoding(orig)
639639

640640

641-
# -----------------------------------------------------------------------------
642-
# Console debugging tools
643-
644-
645-
def debug(f, *args, **kwargs):
646-
from pdb import Pdb as OldPdb
647-
try:
648-
from IPython.core.debugger import Pdb
649-
kw = dict(color_scheme='Linux')
650-
except ImportError:
651-
Pdb = OldPdb
652-
kw = {}
653-
pdb = Pdb(**kw)
654-
return pdb.runcall(f, *args, **kwargs)
655-
656-
657-
def pudebug(f, *args, **kwargs):
658-
import pudb
659-
return pudb.runcall(f, *args, **kwargs)
660-
661-
662-
def set_trace():
663-
from IPython.core.debugger import Pdb
664-
try:
665-
Pdb(color_scheme='Linux').set_trace(sys._getframe().f_back)
666-
except Exception:
667-
from pdb import Pdb as OldPdb
668-
OldPdb().set_trace(sys._getframe().f_back)
669-
670641
# -----------------------------------------------------------------------------
671642
# contextmanager to ensure the file cleanup
672643

0 commit comments

Comments
 (0)