changeset: 91212:901a8265511a user: Victor Stinner date: Mon Jun 16 16:21:57 2014 +0200 files: Lib/test/test_asyncio/test_tasks.py Lib/test/test_sys.py description: Issue #21205: Fix unit tests diff -r aa85e8d729ae -r 901a8265511a Lib/test/test_asyncio/test_tasks.py --- a/Lib/test/test_asyncio/test_tasks.py Mon Jun 16 15:59:28 2014 +0200 +++ b/Lib/test/test_asyncio/test_tasks.py Mon Jun 16 16:21:57 2014 +0200 @@ -154,10 +154,7 @@ t = MyTask(gen, loop=self.loop) filename = gen.gi_code.co_filename lineno = gen.gi_frame.f_lineno - # FIXME: check for the name "coro" instead of "notmuch" because - # @asyncio.coroutine drops the name of the wrapped function: - # http://bugs.python.org/issue21205 - self.assertEqual(repr(t), 'T[]()' % (filename, lineno)) + self.assertEqual(repr(t), 'T[]()' % (filename, lineno)) def test_task_basics(self): @asyncio.coroutine diff -r aa85e8d729ae -r 901a8265511a Lib/test/test_sys.py --- a/Lib/test/test_sys.py Mon Jun 16 15:59:28 2014 +0200 +++ b/Lib/test/test_sys.py Mon Jun 16 16:21:57 2014 +0200 @@ -885,7 +885,7 @@ check(bar, size('PP')) # generator def get_gen(): yield 1 - check(get_gen(), size('Pb2P')) + check(get_gen(), size('Pb2PPP')) # iterator check(iter('abc'), size('lP')) # callable-iterator