diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-10 02:18:47 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-10 02:18:47 (GMT) |
commit | 63085d4d1e7d705a7d38bf1a8dc7457ea58e33a2 (patch) | |
tree | 9cc042c6996250176adeb2a16b562ea3284594e9 /Lib/test/test_future1.py | |
parent | 198457a9789cbb176d7d0b3c8b38254b33836deb (diff) | |
download | cpython-63085d4d1e7d705a7d38bf1a8dc7457ea58e33a2.zip cpython-63085d4d1e7d705a7d38bf1a8dc7457ea58e33a2.tar.gz cpython-63085d4d1e7d705a7d38bf1a8dc7457ea58e33a2.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_future1.py')
-rw-r--r-- | Lib/test/test_future1.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_future1.py b/Lib/test/test_future1.py index 0589661..b0d2a5c 100644 --- a/Lib/test/test_future1.py +++ b/Lib/test/test_future1.py @@ -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): |