Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
d41842dc
Commit
d41842dc
authored
Aug 08, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some tests in Py3.2
parent
5e4d76f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/run/test_coroutines_pep492.pyx
tests/run/test_coroutines_pep492.pyx
+2
-2
No files found.
tests/run/test_coroutines_pep492.pyx
View file @
d41842dc
...
...
@@ -1229,7 +1229,7 @@ class CoroutineTest(unittest.TestCase):
result
=
run_async__await__
(
foo
())
self
.
assertIsInstance
(
result
[
1
],
StopIteration
)
if
sys
.
version_info
[
0
]
>=
3
:
if
sys
.
version_info
>=
(
3
,
3
)
:
self
.
assertEqual
(
result
[
1
].
value
,
10
)
else
:
self
.
assertEqual
(
result
[
1
].
args
[
0
],
10
)
...
...
@@ -2176,7 +2176,7 @@ class CoroutineTest(unittest.TestCase):
if self.i:
raise StopAsyncIteration
self.i += 1
if sys.version_info
[0] >= 3
:
if sys.version_info
>= (3, 3)
:
return self.value
else:
return self.args[0]
...
...
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