Commit e987256e authored by Stefan Behnel's avatar Stefan Behnel

fix test in Py2.6

parent 9c5dca1b
...@@ -325,7 +325,7 @@ class CoroutineTest(unittest.TestCase): ...@@ -325,7 +325,7 @@ class CoroutineTest(unittest.TestCase):
coro = foo() coro = foo()
aw = coro.__await__() aw = coro.__await__()
self.assertIs(aw, iter(aw)) self.assertTrue(aw is iter(aw))
next(aw) next(aw)
self.assertEqual(aw.send(10), 100) self.assertEqual(aw.send(10), 100)
with self.assertRaises(TypeError): with self.assertRaises(TypeError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment