Use the IPython debugger by default (ipdb)

This commit is contained in:
Michael Mintz 2021-05-10 19:15:14 -04:00
parent 87443ad065
commit 7a6c6ca35d
4 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,7 @@
[pytest] [pytest]
# Display console output and disable the cacheprovider. # Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
addopts = --capture=no -p no:cacheprovider addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning # Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
filterwarnings = filterwarnings =

View File

@ -1,7 +1,7 @@
[pytest] [pytest]
# Display console output and disable the cacheprovider. # Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
addopts = --capture=no -p no:cacheprovider addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning # Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
filterwarnings = filterwarnings =

View File

@ -1,7 +1,7 @@
[pytest] [pytest]
# Display console output and disable the cacheprovider. # Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
addopts = --capture=no -p no:cacheprovider addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning # Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
filterwarnings = filterwarnings =

View File

@ -123,7 +123,10 @@ def main():
data = [] data = []
data.append("[pytest]") data.append("[pytest]")
data.append("addopts = --capture=no -p no:cacheprovider") data.append(
"addopts = --capture=no -p no:cacheprovider "
"--pdbcls=IPython.terminal.debugger:TerminalPdb"
)
data.append("filterwarnings =") data.append("filterwarnings =")
data.append(" ignore::pytest.PytestWarning") data.append(" ignore::pytest.PytestWarning")
data.append(" ignore:.*U.*mode is deprecated:DeprecationWarning") data.append(" ignore:.*U.*mode is deprecated:DeprecationWarning")