[Python-checkins] CVS: python/dist/src/Lib/test test_future1.py,1.1,1.2

Fred L. Drake fdrake@usw-pr-cvs1.sourceforge.net
Fri, 09 Mar 2001 18:18:49 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv19185

Modified Files:
	test_future1.py 
Log Message:

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.


Index: test_future1.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_future1.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_future1.py	2001/02/28 17:48:06	1.1
--- test_future1.py	2001/03/10 02:18:47	1.2
***************
*** 1,4 ****
  """This is a test"""
! from __future__ import nested_scopes
  
  def f(x):
--- 1,6 ----
  """This is a test"""
! 
! # Import the name nested_scopes twice to trigger SF bug #407394 (regression).
! from __future__ import nested_scopes, nested_scopes
  
  def f(x):