Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7db27c8e
Commit
7db27c8e
authored
Jun 16, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #21205: Fix unit tests
parent
40ee3018
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_asyncio/test_tasks.py
+1
-4
Lib/test/test_sys.py
Lib/test/test_sys.py
+1
-1
No files found.
Lib/test/test_asyncio/test_tasks.py
View file @
7db27c8e
...
...
@@ -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
...
...
Lib/test/test_sys.py
View file @
7db27c8e
...
...
@@ -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
(
'Pb2P
PP
'
))
# iterator
check
(
iter
(
'abc'
),
size
(
'lP'
))
# callable-iterator
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment