Skip to content

Commit 7a6c6ca

Browse files
committed
Use the IPython debugger by default (ipdb)
1 parent 87443ad commit 7a6c6ca

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

examples/pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pytest]
22

3-
# Display console output and disable the cacheprovider.
4-
addopts = --capture=no -p no:cacheprovider
3+
# Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
4+
addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
55

66
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
77
filterwarnings =

examples/translations/pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pytest]
22

3-
# Display console output and disable the cacheprovider.
4-
addopts = --capture=no -p no:cacheprovider
3+
# Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
4+
addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
55

66
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
77
filterwarnings =

pytest.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[pytest]
22

3-
# Display console output and disable the cacheprovider.
4-
addopts = --capture=no -p no:cacheprovider
3+
# Display console output, disable cacheprovider, and have the ipdb debugger replace pdb:
4+
addopts = --capture=no -p no:cacheprovider --pdbcls=IPython.terminal.debugger:TerminalPdb
55

66
# Ignore warnings such as DeprecationWarning and PytestUnknownMarkWarning
77
filterwarnings =

seleniumbase/console_scripts/sb_mkdir.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ def main():
123123

124124
data = []
125125
data.append("[pytest]")
126-
data.append("addopts = --capture=no -p no:cacheprovider")
126+
data.append(
127+
"addopts = --capture=no -p no:cacheprovider "
128+
"--pdbcls=IPython.terminal.debugger:TerminalPdb"
129+
)
127130
data.append("filterwarnings =")
128131
data.append(" ignore::pytest.PytestWarning")
129132
data.append(" ignore:.*U.*mode is deprecated:DeprecationWarning")

0 commit comments

Comments
 (0)