]> granicus.if.org Git - python/commitdiff
Issue #21205: Fix unit tests
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 16 Jun 2014 14:21:57 +0000 (16:21 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 16 Jun 2014 14:21:57 +0000 (16:21 +0200)
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_sys.py

index 92eb9daefbd9b210f3b8c1ec8917cfaef5d504b0..42c365d366559cdc2092a5e220c0683eae0f2539 100644 (file)
@@ -154,10 +154,7 @@ class TaskTests(unittest.TestCase):
         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[](<coro at %s:%s>)' % (filename, lineno))
+        self.assertEqual(repr(t), 'T[](<notmuch at %s:%s>)' % (filename, lineno))
 
     def test_task_basics(self):
         @asyncio.coroutine
index 4eadd4b9d2c2a47bf886f4842a31071e441c2d50..854e7865e88c3c378339fa1e751414890c0b1af7 100644 (file)
@@ -885,7 +885,7 @@ class SizeofTest(unittest.TestCase):
             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