Skip to content

Commit cc2f4f1

Browse files
committed
Test issue #42
1 parent 372b290 commit cc2f4f1

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

test/test_gen.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11

2+
@profile
3+
def my_func():
4+
a = [1] * (10 ** 6)
5+
b = [2] * (2 * 10 ** 7)
6+
del b
7+
yield a
8+
9+
210
@profile
311
def test_comprehension():
412
# Dict comprehension
@@ -37,5 +45,8 @@ def test_generator():
3745

3846

3947
if __name__ == '__main__':
48+
with profile:
49+
next(my_func()) # Issue #42
50+
4051
test_generator()
4152
test_comprehension()

0 commit comments

Comments
 (0)