blob: 13a0c3e4039ab9b1a593a89bc26b7bc15b18ca50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
"""This test will fail if generators bind too early."""
from nose.tools import eq_
def test1():
def func(_l, _n):
eq_(len(_l), _n)
l = []
for i in xrange(5):
yield func, l, i
l.append(None)
|