@@ -322,14 +322,15 @@ def test_execute_inc():
322322 """execute request should increment execution_count"""
323323 flush_channels ()
324324
325- msg_id , reply = execute (code = ' x=1' )
326- count = reply [' execution_count' ]
325+ _ , reply = execute (code = " x=1" )
326+ count = reply [" execution_count" ]
327327
328328 flush_channels ()
329329
330- msg_id , reply = execute (code = 'x=2' )
331- count_2 = reply ['execution_count' ]
332- assert count_2 == count + 1
330+ _ , reply = execute (code = "x=2" )
331+ count_2 = reply ["execution_count" ]
332+ assert count_2 == count + 1
333+
333334
334335def test_execute_stop_on_error ():
335336 """execute request should not abort execution queue with stop_on_error False"""
@@ -342,15 +343,15 @@ def test_execute_stop_on_error():
342343 'raise ValueError' ,
343344 ])
344345 KC .execute (code = fail )
345- msg_id = KC .execute (code = 'print("Hello")' )
346+ KC .execute (code = 'print("Hello")' )
346347 KC .get_shell_msg (timeout = TIMEOUT )
347348 reply = KC .get_shell_msg (timeout = TIMEOUT )
348349 assert reply ['content' ]['status' ] == 'aborted'
349350
350351 flush_channels ()
351352
352353 KC .execute (code = fail , stop_on_error = False )
353- msg_id = KC .execute (code = 'print("Hello")' )
354+ KC .execute (code = 'print("Hello")' )
354355 KC .get_shell_msg (timeout = TIMEOUT )
355356 reply = KC .get_shell_msg (timeout = TIMEOUT )
356357 assert reply ['content' ]['status' ] == 'ok'
@@ -519,8 +520,8 @@ def test_is_complete():
519520def test_history_range ():
520521 flush_channels ()
521522
522- msg_id_exec = KC .execute (code = ' x=1' , store_history = True )
523- reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
523+ KC .execute (code = " x=1" , store_history = True )
524+ KC .get_shell_msg (timeout = TIMEOUT )
524525
525526 msg_id = KC .history (hist_access_type = 'range' , raw = True , output = True , start = 1 , stop = 2 , session = 0 )
526527 reply = get_reply (KC , msg_id , TIMEOUT )
@@ -531,8 +532,8 @@ def test_history_range():
531532def test_history_tail ():
532533 flush_channels ()
533534
534- msg_id_exec = KC .execute (code = ' x=1' , store_history = True )
535- reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
535+ KC .execute (code = " x=1" , store_history = True )
536+ KC .get_shell_msg (timeout = TIMEOUT )
536537
537538 msg_id = KC .history (hist_access_type = 'tail' , raw = True , output = True , n = 1 , session = 0 )
538539 reply = get_reply (KC , msg_id , TIMEOUT )
@@ -543,8 +544,8 @@ def test_history_tail():
543544def test_history_search ():
544545 flush_channels ()
545546
546- msg_id_exec = KC .execute (code = ' x=1' , store_history = True )
547- reply_exec = KC .get_shell_msg (timeout = TIMEOUT )
547+ KC .execute (code = " x=1" , store_history = True )
548+ KC .get_shell_msg (timeout = TIMEOUT )
548549
549550 msg_id = KC .history (hist_access_type = 'search' , raw = True , output = True , n = 1 , pattern = '*' , session = 0 )
550551 reply = get_reply (KC , msg_id , TIMEOUT )
0 commit comments