Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63085d4

Browse files
committed
Import the nested_scopes feature twice, to exercise the patch introduced
to avoid segfaults when more than one feature is named in the future statement. This tests for regression of SF bug #407394.
1 parent 198457a commit 63085d4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/test/test_future1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""This is a test"""
2-
from __future__ import nested_scopes
2+
3+
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
4+
from __future__ import nested_scopes, nested_scopes
35

46
def f(x):
57
def g(y):

0 commit comments

Comments
 (0)