##// END OF EJS Templates
Added comments to testStrictDict about random test failure on OS X....
Brian Granger -
Show More
@@ -359,12 +359,15 b' class IEnginePropertiesTestCase(object):'
359 return d
359 return d
360
360
361 def testStrictDict(self):
361 def testStrictDict(self):
362 s = """from IPython.kernel.engineservice import get_engine
362 s = """from IPython.kernel.engineservice import get_engine; p = get_engine(%s).properties"""%self.engine.id
363 p = get_engine(%s).properties"""%self.engine.id
364 d = self.engine.execute(s)
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 d.addCallback(lambda r: self.engine.execute("p['a'] = lambda _:None"))
367 d.addCallback(lambda r: self.engine.execute("p['a'] = lambda _:None"))
366 d.addErrback(lambda f: self.assertRaises(error.InvalidProperty,
368 d.addErrback(lambda f: self.assertRaises(error.InvalidProperty,
367 f.raiseException))
369 f.raiseException))
370 # Below here seems to be fine
368 d.addCallback(lambda r: self.engine.execute("p['a'] = range(5)"))
371 d.addCallback(lambda r: self.engine.execute("p['a'] = range(5)"))
369 d.addCallback(lambda r: self.engine.execute("p['a'].append(5)"))
372 d.addCallback(lambda r: self.engine.execute("p['a'].append(5)"))
370 d.addCallback(lambda r: self.engine.get_properties('a'))
373 d.addCallback(lambda r: self.engine.get_properties('a'))
General Comments 0
You need to be logged in to leave comments. Login now