Skip to content

Commit

Permalink
Use some more informative asserts in inprocess kernel tests
Browse files Browse the repository at this point in the history
Prompted by gh-6552 (but doesn't fix it)
  • Loading branch information
takluyver committed Sep 26, 2014
1 parent 9ad9bcb commit 1cbffd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IPython/kernel/inprocess/tests/test_kernel.py
Expand Up @@ -46,7 +46,7 @@ def test_pylab(self):
kc = self.kc
kc.execute('%pylab')
msg = get_stream_message(kc)
self.assert_('matplotlib' in msg['content']['data'])
self.assertIn('matplotlib', msg['content']['data'])

def test_raw_input(self):
""" Does the in-process kernel handle raw_input correctly?
Expand Down
2 changes: 1 addition & 1 deletion IPython/kernel/inprocess/tests/test_kernelmanager.py
Expand Up @@ -32,7 +32,7 @@ def test_interface(self):

old_kernel = km.kernel
km.restart_kernel()
self.assert_(km.kernel is not None)
self.assertIsNotNone(km.kernel)
self.assertNotEquals(km.kernel, old_kernel)

km.shutdown_kernel()
Expand Down

0 comments on commit 1cbffd7

Please sign in to comment.