]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Import the nested_scopes feature twice, to exercise the patch introduced
authorFred Drake <fdrake@acm.org>
Sat, 10 Mar 2001 02:18:47 +0000 (02:18 +0000)
committerFred Drake <fdrake@acm.org>
Sat, 10 Mar 2001 02:18:47 +0000 (02:18 +0000)
to avoid segfaults when more than one feature is named in the future
statement.

This tests for regression of SF bug #407394.

Lib/test/test_future1.py

index 05896618711d376e469c582c0c1405b83a0e841c..b0d2a5c12ea8e28bde64c86cb7ecac22efbf7610 100644 (file)
@@ -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):