Show More
@@ -421,16 +421,16 b' class TestView(ClusterTestCase):' | |||||
421 | sys.stdout = sio |
|
421 | sys.stdout = sio | |
422 | ip.magic_autopx() |
|
422 | ip.magic_autopx() | |
423 | ip.run_cell('\n'.join(('a=5','b=10','c=0'))) |
|
423 | ip.run_cell('\n'.join(('a=5','b=10','c=0'))) | |
424 |
ip.run_cell(' |
|
424 | ip.run_cell('b*=2') | |
|
425 | ip.run_cell('print (b)') | |||
425 | ip.run_cell("b/c") |
|
426 | ip.run_cell("b/c") | |
426 | ip.run_code(compile('b*=2', '', 'single')) |
|
|||
427 | ip.magic_autopx() |
|
427 | ip.magic_autopx() | |
428 | sys.stdout = savestdout |
|
428 | sys.stdout = savestdout | |
429 | output = sio.getvalue().strip() |
|
429 | output = sio.getvalue().strip() | |
430 | self.assertTrue(output.startswith('%autopx enabled')) |
|
430 | self.assertTrue(output.startswith('%autopx enabled')) | |
431 | self.assertTrue(output.endswith('%autopx disabled')) |
|
431 | self.assertTrue(output.endswith('%autopx disabled')) | |
432 | self.assertTrue('RemoteError: ZeroDivisionError' in output) |
|
432 | self.assertTrue('RemoteError: ZeroDivisionError' in output) | |
433 |
ar = v.get_result(- |
|
433 | ar = v.get_result(-1) | |
434 | self.assertEquals(v['a'], 5) |
|
434 | self.assertEquals(v['a'], 5) | |
435 | self.assertEquals(v['b'], 20) |
|
435 | self.assertEquals(v['b'], 20) | |
436 | self.assertRaisesRemote(ZeroDivisionError, ar.get) |
|
436 | self.assertRaisesRemote(ZeroDivisionError, ar.get) | |
@@ -446,9 +446,9 b' class TestView(ClusterTestCase):' | |||||
446 | sys.stdout = sio |
|
446 | sys.stdout = sio | |
447 | ip.magic_autopx() |
|
447 | ip.magic_autopx() | |
448 | ip.run_cell('\n'.join(('a=5','b=10','c=0'))) |
|
448 | ip.run_cell('\n'.join(('a=5','b=10','c=0'))) | |
449 | ip.run_cell('print b') |
|
449 | ip.run_cell('print (b)') | |
450 | ip.run_cell("b/c") |
|
450 | ip.run_cell("b/c") | |
451 |
ip.run_c |
|
451 | ip.run_cell('b*=2') | |
452 | ip.magic_autopx() |
|
452 | ip.magic_autopx() | |
453 | sys.stdout = savestdout |
|
453 | sys.stdout = savestdout | |
454 | output = sio.getvalue().strip() |
|
454 | output = sio.getvalue().strip() |
General Comments 0
You need to be logged in to leave comments.
Login now