Show More
@@ -705,12 +705,9 b' class Client(HasTraits):' | |||||
705 | except: |
|
705 | except: | |
706 | content = error.wrap_exception() |
|
706 | content = error.wrap_exception() | |
707 | # build a fake message: |
|
707 | # build a fake message: | |
708 | parent = {} |
|
708 | msg = self.session.msg('apply_reply', content=content) | |
709 | header = {} |
|
709 | msg['parent_header']['msg_id'] = msg_id | |
710 | parent['msg_id'] = msg_id |
|
710 | msg['metadata']['engine'] = uuid | |
711 | header['engine'] = uuid |
|
|||
712 | header['date'] = datetime.now() |
|
|||
713 | msg = dict(parent_header=parent, header=header, content=content) |
|
|||
714 | self._handle_apply_reply(msg) |
|
711 | self._handle_apply_reply(msg) | |
715 |
|
712 | |||
716 | def _handle_execute_reply(self, msg): |
|
713 | def _handle_execute_reply(self, msg): |
@@ -21,6 +21,7 b' import time' | |||||
21 |
|
21 | |||
22 | import zmq |
|
22 | import zmq | |
23 | from nose import SkipTest |
|
23 | from nose import SkipTest | |
|
24 | from nose.plugins.attrib import attr | |||
24 |
|
25 | |||
25 | from IPython import parallel as pmod |
|
26 | from IPython import parallel as pmod | |
26 | from IPython.parallel import error |
|
27 | from IPython.parallel import error | |
@@ -38,9 +39,9 b' class TestLoadBalancedView(ClusterTestCase):' | |||||
38 | ClusterTestCase.setUp(self) |
|
39 | ClusterTestCase.setUp(self) | |
39 | self.view = self.client.load_balanced_view() |
|
40 | self.view = self.client.load_balanced_view() | |
40 |
|
41 | |||
|
42 | @attr('crash') | |||
41 | def test_z_crash_task(self): |
|
43 | def test_z_crash_task(self): | |
42 | """test graceful handling of engine death (balanced)""" |
|
44 | """test graceful handling of engine death (balanced)""" | |
43 | raise SkipTest("crash tests disabled, due to undesirable crash reports") |
|
|||
44 | # self.add_engines(1) |
|
45 | # self.add_engines(1) | |
45 | ar = self.view.apply_async(crash) |
|
46 | ar = self.view.apply_async(crash) | |
46 | self.assertRaisesRemote(error.EngineError, ar.get, 10) |
|
47 | self.assertRaisesRemote(error.EngineError, ar.get, 10) |
@@ -24,6 +24,7 b' from StringIO import StringIO' | |||||
24 |
|
24 | |||
25 | import zmq |
|
25 | import zmq | |
26 | from nose import SkipTest |
|
26 | from nose import SkipTest | |
|
27 | from nose.plugins.attrib import attr | |||
27 |
|
28 | |||
28 | from IPython.testing import decorators as dec |
|
29 | from IPython.testing import decorators as dec | |
29 | from IPython.testing.ipunittest import ParametricTestCase |
|
30 | from IPython.testing.ipunittest import ParametricTestCase | |
@@ -51,9 +52,9 b' class TestView(ClusterTestCase, ParametricTestCase):' | |||||
51 | time.sleep(2) |
|
52 | time.sleep(2) | |
52 | super(TestView, self).setUp() |
|
53 | super(TestView, self).setUp() | |
53 |
|
54 | |||
|
55 | @attr('crash') | |||
54 | def test_z_crash_mux(self): |
|
56 | def test_z_crash_mux(self): | |
55 | """test graceful handling of engine death (direct)""" |
|
57 | """test graceful handling of engine death (direct)""" | |
56 | raise SkipTest("crash tests disabled, due to undesirable crash reports") |
|
|||
57 | # self.add_engines(1) |
|
58 | # self.add_engines(1) | |
58 | eid = self.client.ids[-1] |
|
59 | eid = self.client.ids[-1] | |
59 | ar = self.client[eid].apply_async(crash) |
|
60 | ar = self.client[eid].apply_async(crash) |
@@ -476,6 +476,8 b' def run_iptest():' | |||||
476 | # setuptools devs refuse to fix this problem! |
|
476 | # setuptools devs refuse to fix this problem! | |
477 | '--exe', |
|
477 | '--exe', | |
478 | ] |
|
478 | ] | |
|
479 | if '-a' not in argv and '-A' not in argv: | |||
|
480 | argv = argv + ['-a', '!crash'] | |||
479 |
|
481 | |||
480 | if nose.__version__ >= '0.11': |
|
482 | if nose.__version__ >= '0.11': | |
481 | # I don't fully understand why we need this one, but depending on what |
|
483 | # I don't fully understand why we need this one, but depending on what |
General Comments 0
You need to be logged in to leave comments.
Login now