Commit c4a5b6ac authored by Stefan Behnel's avatar Stefan Behnel

Test cleanups.

parent 83e4a348
# mode: run
# tag: generators
# tag: generators, gh3265
try:
import backports_abc
......@@ -508,9 +508,11 @@ def test_generator_abc():
# handling NULL pointers (in testing it shows as a REFNANNY error).
# This was on creation of the generator and
# doesn't really require it to be iterated through:
def some_function():
return 0
def test_generator_kwds1(**kwargs):
"""
>>> for a in test_generator_kwds1():
......@@ -519,6 +521,7 @@ def test_generator_kwds1(**kwargs):
"""
yield some_function(**kwargs)
def test_generator_kwds2(**kwargs):
"""
>>> for a in test_generator_kwds2():
......@@ -527,6 +530,7 @@ def test_generator_kwds2(**kwargs):
"""
yield 0
def test_generator_kwds3(**kwargs):
"""
This didn't actually crash before but is still worth a try
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment