Show More
@@ -359,12 +359,15 b' class IEnginePropertiesTestCase(object):' | |||
|
359 | 359 | return d |
|
360 | 360 | |
|
361 | 361 | def testStrictDict(self): |
|
362 | s = """from IPython.kernel.engineservice import get_engine | |
|
363 | p = get_engine(%s).properties"""%self.engine.id | |
|
362 | s = """from IPython.kernel.engineservice import get_engine; p = get_engine(%s).properties"""%self.engine.id | |
|
364 | 363 | d = self.engine.execute(s) |
|
364 | # These 3 lines cause a weird testing error on some platforms (OS X). | |
|
365 | # I am leaving them here in case they are masking some really | |
|
366 | # weird reactor issue. For now I will just keep my eye on this. | |
|
365 | 367 | d.addCallback(lambda r: self.engine.execute("p['a'] = lambda _:None")) |
|
366 | 368 | d.addErrback(lambda f: self.assertRaises(error.InvalidProperty, |
|
367 | 369 | f.raiseException)) |
|
370 | # Below here seems to be fine | |
|
368 | 371 | d.addCallback(lambda r: self.engine.execute("p['a'] = range(5)")) |
|
369 | 372 | d.addCallback(lambda r: self.engine.execute("p['a'].append(5)")) |
|
370 | 373 | d.addCallback(lambda r: self.engine.get_properties('a')) |
General Comments 0
You need to be logged in to leave comments.
Login now