@@ -44,7 +44,6 @@ def _check_status(content):
4444def test_simple_print ():
4545 """simple print statement in kernel"""
4646 with kernel () as kc :
47- iopub = kc .iopub_channel
4847 msg_id , content = execute (kc = kc , code = "print('hi')" )
4948 stdout , stderr = assemble_output (kc .get_iopub_msg )
5049 assert stdout == 'hi\n '
@@ -116,7 +115,6 @@ def test_sys_path_profile_dir():
116115def test_subprocess_print ():
117116 """printing from forked mp.Process"""
118117 with new_kernel () as kc :
119- iopub = kc .iopub_channel
120118
121119 _check_master (kc , expected = True )
122120 flush_channels (kc )
@@ -144,7 +142,6 @@ def test_subprocess_print():
144142def test_subprocess_noprint ():
145143 """mp.Process without print doesn't trigger iostream mp_mode"""
146144 with kernel () as kc :
147- iopub = kc .iopub_channel
148145
149146 np = 5
150147 code = '\n ' .join ([
@@ -171,7 +168,6 @@ def test_subprocess_noprint():
171168def test_subprocess_error ():
172169 """error in mp.Process doesn't crash"""
173170 with new_kernel () as kc :
174- iopub = kc .iopub_channel
175171
176172 code = '\n ' .join ([
177173 "import multiprocessing as mp" ,
@@ -344,8 +340,6 @@ def test_unc_paths():
344340 file_path = os .path .splitdrive (os .path .dirname (drive_file_path ))[1 ]
345341 unc_file_path = os .path .join (unc_root , file_path [1 :])
346342
347- iopub = kc .iopub_channel
348-
349343 kc .execute ("cd {0:s}" .format (unc_file_path ))
350344 reply = kc .get_shell_msg (block = True , timeout = TIMEOUT )
351345 assert reply ['content' ]['status' ] == 'ok'
0 commit comments