Show More
@@ -234,7 +234,9 b' class TestParallelMagics(ClusterTestCase, ParametricTestCase):' | |||||
234 | ip.magic('px a=10') |
|
234 | ip.magic('px a=10') | |
235 | self.assertEquals(v['a'], [10]) |
|
235 | self.assertEquals(v['a'], [10]) | |
236 | with capture_output() as io: |
|
236 | with capture_output() as io: | |
237 | ip.magic('px print a') |
|
237 | ar = ip.magic('px print (a)') | |
|
238 | self.assertTrue(isinstance(ar, AsyncResult)) | |||
|
239 | self.assertTrue('Async' in io.stdout) | |||
238 | self.assertFalse('[stdout:' in io.stdout) |
|
240 | self.assertFalse('[stdout:' in io.stdout) | |
239 | ar = ip.magic('px 1/0') |
|
241 | ar = ip.magic('px 1/0') | |
240 | self.assertRaisesRemote(ZeroDivisionError, ar.get) |
|
242 | self.assertRaisesRemote(ZeroDivisionError, ar.get) |
General Comments 0
You need to be logged in to leave comments.
Login now