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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c4a5b6ac
Commit
c4a5b6ac
authored
Jan 08, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cleanups.
parent
83e4a348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tests/run/generators.pyx
tests/run/generators.pyx
+5
-1
No files found.
tests/run/generators.pyx
View file @
c4a5b6ac
# mode: run
# mode: run
# tag: generators
# tag: generators
, gh3265
try
:
try
:
import
backports_abc
import
backports_abc
...
@@ -508,9 +508,11 @@ def test_generator_abc():
...
@@ -508,9 +508,11 @@ def test_generator_abc():
# handling NULL pointers (in testing it shows as a REFNANNY error).
# handling NULL pointers (in testing it shows as a REFNANNY error).
# This was on creation of the generator and
# This was on creation of the generator and
# doesn't really require it to be iterated through:
# doesn't really require it to be iterated through:
def
some_function
():
def
some_function
():
return
0
return
0
def
test_generator_kwds1
(
**
kwargs
):
def
test_generator_kwds1
(
**
kwargs
):
"""
"""
>>> for a in test_generator_kwds1():
>>> for a in test_generator_kwds1():
...
@@ -519,6 +521,7 @@ def test_generator_kwds1(**kwargs):
...
@@ -519,6 +521,7 @@ def test_generator_kwds1(**kwargs):
"""
"""
yield
some_function
(
**
kwargs
)
yield
some_function
(
**
kwargs
)
def
test_generator_kwds2
(
**
kwargs
):
def
test_generator_kwds2
(
**
kwargs
):
"""
"""
>>> for a in test_generator_kwds2():
>>> for a in test_generator_kwds2():
...
@@ -527,6 +530,7 @@ def test_generator_kwds2(**kwargs):
...
@@ -527,6 +530,7 @@ def test_generator_kwds2(**kwargs):
"""
"""
yield
0
yield
0
def
test_generator_kwds3
(
**
kwargs
):
def
test_generator_kwds3
(
**
kwargs
):
"""
"""
This didn't actually crash before but is still worth a try
This didn't actually crash before but is still worth a try
...
...
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