File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -558,14 +558,14 @@ def test_reset_kernel_client(self):
558
558
executor .execute ()
559
559
# we didn't ask to reset the kernel client, a new one must have been created
560
560
kc = executor .kc
561
- self . assertNotEqual ( kc , None )
561
+ assert kc is not None
562
562
executor .execute ()
563
563
# we didn't ask to reset the kernel client, the previously created one must have been reused
564
- self . assertEqual ( kc , executor .kc )
564
+ assert kc == executor .kc
565
565
executor .execute (reset_kc = True )
566
566
# we asked to reset the kernel client, the previous one must have been cleaned up,
567
567
# a new one must have been created and also cleaned up
568
- self . assertEqual ( executor .kc , None )
568
+ assert executor .kc is None
569
569
570
570
def test_custom_kernel_manager (self ):
571
571
from .fake_kernelmanager import FakeCustomKernelManager
You can’t perform that action at this time.
0 commit comments