Skip to content

Commit 7d3a1c3

Browse files
committed
Use python's assert
1 parent dc22d8e commit 7d3a1c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nbclient/tests/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,14 @@ def test_reset_kernel_client(self):
558558
executor.execute()
559559
# we didn't ask to reset the kernel client, a new one must have been created
560560
kc = executor.kc
561-
self.assertNotEqual(kc, None)
561+
assert kc is not None
562562
executor.execute()
563563
# 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
565565
executor.execute(reset_kc=True)
566566
# we asked to reset the kernel client, the previous one must have been cleaned up,
567567
# a new one must have been created and also cleaned up
568-
self.assertEqual(executor.kc, None)
568+
assert executor.kc is None
569569

570570
def test_custom_kernel_manager(self):
571571
from .fake_kernelmanager import FakeCustomKernelManager

0 commit comments

Comments
 (0)