Skip to content

Removed debugging code #25647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pandas/tests/computation/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ def check_complex_cmp_op(self, lhs, cmp1, rhs, binop, cmp2):
# local_dict={'lhs': lhs, 'rhs': rhs},
# engine=self.engine, parser=self.parser)
# except AssertionError:
# import ipdb
#
# ipdb.set_trace()
# raise
else:
expected = _eval_single_bin(
Expand Down
1 change: 0 additions & 1 deletion pandas/tests/internals/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,6 @@ class TestIndexing(object):

def test_get_slice(self):
def assert_slice_ok(mgr, axis, slobj):
# import pudb; pudb.set_trace()
mat = mgr.as_array()

# we maybe using an ndarray to test slicing and
Expand Down
29 changes: 0 additions & 29 deletions pandas/util/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,35 +638,6 @@ def set_defaultencoding(encoding):
sys.setdefaultencoding(orig)


# -----------------------------------------------------------------------------
# Console debugging tools


def debug(f, *args, **kwargs):
from pdb import Pdb as OldPdb
try:
from IPython.core.debugger import Pdb
kw = dict(color_scheme='Linux')
except ImportError:
Pdb = OldPdb
kw = {}
pdb = Pdb(**kw)
return pdb.runcall(f, *args, **kwargs)


def pudebug(f, *args, **kwargs):
import pudb
return pudb.runcall(f, *args, **kwargs)


def set_trace():
from IPython.core.debugger import Pdb
try:
Pdb(color_scheme='Linux').set_trace(sys._getframe().f_back)
except Exception:
from pdb import Pdb as OldPdb
OldPdb().set_trace(sys._getframe().f_back)

# -----------------------------------------------------------------------------
# contextmanager to ensure the file cleanup

Expand Down