mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
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.
This commit is contained in:
parent
198457a978
commit
63085d4d1e
1 changed files with 3 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
|||
"""This is a test"""
|
||||
from __future__ import nested_scopes
|
||||
|
||||
# Import the name nested_scopes twice to trigger SF bug #407394 (regression).
|
||||
from __future__ import nested_scopes, nested_scopes
|
||||
|
||||
def f(x):
|
||||
def g(y):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue