@@ -195,13 +195,13 @@ def test_raw_input():
195195 theprompt = "prompt> "
196196 code = 'print({input_f}("{theprompt}"))' .format (** locals ())
197197 msg_id = kc .execute (code , allow_stdin = True )
198- msg = kc .get_stdin_msg (block = True , timeout = TIMEOUT )
198+ msg = kc .get_stdin_msg (timeout = TIMEOUT )
199199 assert msg ['header' ]['msg_type' ] == 'input_request'
200200 content = msg ['content' ]
201201 assert content ['prompt' ] == theprompt
202202 text = "some text"
203203 kc .input (text )
204- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
204+ reply = kc .get_shell_msg (timeout = TIMEOUT )
205205 assert reply ['content' ]['status' ] == 'ok'
206206 stdout , stderr = assemble_output (kc .get_iopub_msg )
207207 assert stdout == text + "\n "
@@ -249,22 +249,22 @@ def test_is_complete():
249249 # There are more test cases for this in core - here we just check
250250 # that the kernel exposes the interface correctly.
251251 kc .is_complete ('2+2' )
252- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
252+ reply = kc .get_shell_msg (timeout = TIMEOUT )
253253 assert reply ['content' ]['status' ] == 'complete'
254254
255255 # SyntaxError
256256 kc .is_complete ('raise = 2' )
257- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
257+ reply = kc .get_shell_msg (timeout = TIMEOUT )
258258 assert reply ['content' ]['status' ] == 'invalid'
259259
260260 kc .is_complete ('a = [1,\n 2,' )
261- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
261+ reply = kc .get_shell_msg (timeout = TIMEOUT )
262262 assert reply ['content' ]['status' ] == 'incomplete'
263263 assert reply ['content' ]['indent' ] == ''
264264
265265 # Cell magic ends on two blank lines for console UIs
266266 kc .is_complete ('%%timeit\n a\n \n ' )
267- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
267+ reply = kc .get_shell_msg (timeout = TIMEOUT )
268268 assert reply ['content' ]['status' ] == 'complete'
269269
270270
@@ -275,7 +275,7 @@ def test_complete():
275275 wait_for_idle (kc )
276276 cell = 'import IPython\n b = a.'
277277 kc .complete (cell )
278- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
278+ reply = kc .get_shell_msg (timeout = TIMEOUT )
279279
280280 c = reply ['content' ]
281281 assert c ['status' ] == 'ok'
@@ -341,20 +341,20 @@ def test_unc_paths():
341341 unc_file_path = os .path .join (unc_root , file_path [1 :])
342342
343343 kc .execute ("cd {0:s}" .format (unc_file_path ))
344- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
344+ reply = kc .get_shell_msg (timeout = TIMEOUT )
345345 assert reply ['content' ]['status' ] == 'ok'
346346 out , err = assemble_output (kc .get_iopub_msg )
347347 assert unc_file_path in out
348348
349349 flush_channels (kc )
350350 kc .execute (code = "ls" )
351- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
351+ reply = kc .get_shell_msg (timeout = TIMEOUT )
352352 assert reply ['content' ]['status' ] == 'ok'
353353 out , err = assemble_output (kc .get_iopub_msg )
354354 assert 'unc.txt' in out
355355
356356 kc .execute (code = "cd" )
357- reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
357+ reply = kc .get_shell_msg (timeout = TIMEOUT )
358358 assert reply ['content' ]['status' ] == 'ok'
359359
360360
0 commit comments