@@ -123,39 +123,32 @@ def test_get_calltips(ipyconsole, qtbot, function, signature, documentation):
123
123
124
124
@flaky (max_runs = 3 )
125
125
@pytest .mark .auto_backend
126
- @pytest .mark .skipif (
127
- running_in_ci () and not os .name == 'nt' ,
128
- reason = "Times out on Linux and macOS" )
129
126
def test_auto_backend (ipyconsole , qtbot ):
130
127
"""Test that the automatic backend was set correctly."""
131
128
# Wait until the window is fully up
132
129
shell = ipyconsole .get_current_shellwidget ()
133
130
134
131
with qtbot .waitSignal (shell .executed ):
135
- shell .execute ("ip = get_ipython(); ip .kernel.eventloop" )
132
+ shell .execute ("get_ipython().kernel.eventloop" )
136
133
137
134
# Assert there are no errors in the console and we set the right
138
135
# backend.
139
136
control = ipyconsole .get_widget ().get_focus_widget ()
140
137
assert 'NOTE' not in control .toPlainText ()
141
138
assert 'Error' not in control .toPlainText ()
142
- assert 'loop_qt5' in control .toPlainText ()
139
+ assert ('loop_qt5' in control .toPlainText () or
140
+ 'loop_qt' in control .toPlainText ())
143
141
144
142
145
143
@flaky (max_runs = 3 )
146
144
@pytest .mark .tk_backend
147
- @pytest .mark .skipif (
148
- running_in_ci () and not os .name == 'nt' ,
149
- reason = "Times out on Linux and macOS" )
150
145
def test_tk_backend (ipyconsole , qtbot ):
151
146
"""Test that the Tkinter backend was set correctly."""
152
147
# Wait until the window is fully up
153
148
shell = ipyconsole .get_current_shellwidget ()
154
- qtbot .waitUntil (lambda : shell ._prompt_html is not None ,
155
- timeout = SHELL_TIMEOUT )
156
149
157
150
with qtbot .waitSignal (shell .executed ):
158
- shell .execute ("ip = get_ipython(); ip .kernel.eventloop" )
151
+ shell .execute ("get_ipython().kernel.eventloop" )
159
152
160
153
# Assert we set the right backend in the kernel.
161
154
control = ipyconsole .get_widget ().get_focus_widget ()
@@ -1934,9 +1927,6 @@ def test_pdb_comprehension_namespace(ipyconsole, qtbot, tmpdir):
1934
1927
1935
1928
@flaky (max_runs = 3 )
1936
1929
@pytest .mark .auto_backend
1937
- @pytest .mark .skipif (
1938
- running_in_ci () and not os .name == 'nt' ,
1939
- reason = "Times out on Linux and macOS" )
1940
1930
def test_restart_intertactive_backend (ipyconsole ):
1941
1931
"""
1942
1932
Test that we ask for a restart after switching to a different interactive
0 commit comments