From 784e647e6c4615c3e2d3bf1756642e1c678529c6 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 6 Aug 2019 07:38:54 -0400 Subject: Pudb is a useful thing to have available when needed --- coverage/debug.py | 2 +- requirements/pytest.pip | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/coverage/debug.py b/coverage/debug.py index c11c927a..9de9886b 100644 --- a/coverage/debug.py +++ b/coverage/debug.py @@ -335,7 +335,7 @@ def break_in_pudb(func): # pragma: debugging """A function decorator to stop in the debugger for each call.""" @functools.wraps(func) def _wrapper(*args, **kwargs): - import pudb # pylint: disable=import-error + import pudb sys.stdout = sys.__stdout__ pudb.set_trace() return func(*args, **kwargs) diff --git a/requirements/pytest.pip b/requirements/pytest.pip index bd3255b1..3c582310 100644 --- a/requirements/pytest.pip +++ b/requirements/pytest.pip @@ -14,3 +14,6 @@ hypothesis==4.32.1 # Our testing mixins unittest-mixins==1.6 #-e/Users/ned/unittest_mixins + +# Just so I have a debugger if I want it +pudb==2019.1 -- cgit v1.2.1