- self.assertEqual(lines, ["accept blocked", "child died ok"], output)
+ self.assertEqual(lines, [b"accept blocked", b"child died ok"], output)
with eventlet.Timeout(0.5, self.CustomException()):
# we now switch to the hub, there should be no existing timers
# that switch back to this greenlet and so this hub.switch()
with eventlet.Timeout(0.5, self.CustomException()):
# we now switch to the hub, there should be no existing timers
# that switch back to this greenlet and so this hub.switch()
# we now switch to the hub which will allow
# completion of dummyproc.
# this should return execution back to the runloop and not
# we now switch to the hub which will allow
# completion of dummyproc.
# this should return execution back to the runloop and not
self.assertRaises(self.CustomException, hub.switch)
assert g.dead # sanity check that dummyproc has completed
self.assertRaises(self.CustomException, hub.switch)
assert g.dead # sanity check that dummyproc has completed