[Python-checkins] cpython: Issue #21205: Fix unit tests
victor.stinner
python-checkins at python.org
Mon Jun 16 16:24:13 CEST 2014
http://hg.python.org/cpython/rev/901a8265511a
changeset: 91212:901a8265511a
user: Victor Stinner <victor.stinner at gmail.com>
date: Mon Jun 16 16:21:57 2014 +0200
summary:
Issue #21205: Fix unit tests
files:
Lib/test/test_asyncio/test_tasks.py | 5 +----
Lib/test/test_sys.py | 2 +-
2 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -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[](<coro at %s:%s>)' % (filename, lineno))
+ self.assertEqual(repr(t), 'T[](<notmuch at %s:%s>)' % (filename, lineno))
def test_task_basics(self):
@asyncio.coroutine
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list