From be276eed51d3a4c2cea5b8d742e009738d0e4dad Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Sun, 11 Aug 2019 08:25:55 +0300 Subject: [PATCH] fix(build): enable `ipdb` debugger on pytest --pdb, to workaround pytest-dev/pytest#2064 --- setup.cfg | 3 ++- setup.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 12ad75bc..15779bfa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,7 +32,8 @@ addopts = tests wltp README.rst docs/code.rst #--doctest-modules --doctest-glob=README.rst --cov-fail-under=69 # --cov=wltp.experiment --cov=wltp.model --cov=wltp.utils --cov=wltp.cycles - # --pdbcls=IPython.terminal.debugger:TerminalPdb + # --pdbcls=IPython.terminal.debugger:TerminalPdb CRASH: pytest-dev/pytest#2064 + --pdbcls=ipdb:__main__.debugger_cls doctest_optionflags = NORMALIZE_WHITESPACE ELLIPSIS markers = diff --git a/setup.py b/setup.py index 13915331..4b5d9930 100644 --- a/setup.py +++ b/setup.py @@ -126,6 +126,7 @@ def clean_line(line): "sphinx", "tables", # pandas-IO for h5 "twine", # for PyPi long-description check + "ipdb", # for `pytest --pdb` (set in `setup.cfg`) ## For notebooks # "papermill",