File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1818import pytest
1919
2020if typing .TYPE_CHECKING :
21- from IPython .core .interactiveshell import TerminalInteractiveShell
21+ from IPython .terminal .interactiveshell import TerminalInteractiveShell
2222
2323interactiveshell = pytest .importorskip ("IPython.terminal.interactiveshell" )
2424tools = pytest .importorskip ("IPython.testing.tools" )
@@ -40,5 +40,6 @@ def ipython_interactive(
4040
4141 for the duration of the test scope.
4242 """
43- with ipython .builtin_trap :
44- yield ipython
43+ if ipython .builtin_trap is not None :
44+ with ipython .builtin_trap :
45+ yield ipython
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ def ipython_interactive(
4646 for the duration of the test scope.
4747 """
4848
49- if ipython .builtin_type is not None :
49+ if ipython .builtin_trap is not None :
5050 with ipython .builtin_trap :
5151 yield ipython
5252
Original file line number Diff line number Diff line change @@ -231,6 +231,7 @@ def _session_tests(
231231
232232 session .run (
233233 "pytest" ,
234+ "-s" ,
234235 * (PYTEST_COMMON_ARGS + session .posargs + concurrent_args ),
235236 # Pytest will return 5 when no tests are collected. This can happen
236237 # on travis where slow and flaky tests are excluded.
You can’t perform that action at this time.
0 commit comments