[Python-checkins] CVS: python/dist/src/Lib/test test_scope.py,1.23,1.24

Guido van Rossum gvanrossum@users.sourceforge.net
Sat, 15 Dec 2001 10:04:13 -0800


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

Modified Files:
	test_scope.py 
Log Message:
Don't call resetwarnings().  Be more restrictive in what we filter out
instead.


Index: test_scope.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_scope.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** test_scope.py	2001/12/13 20:00:26	1.23
--- test_scope.py	2001/12/15 18:04:10	1.24
***************
*** 2,6 ****
  
  import warnings
! warnings.filterwarnings("ignore", "import *")
  
  print "1. simple nesting"
--- 2,6 ----
  
  import warnings
! warnings.filterwarnings("ignore", r"import \*", SyntaxWarning, "<string>")
  
  print "1. simple nesting"
***************
*** 491,496 ****
  else:
      print "exec should have failed, because code contained free vars"
- 
- warnings.resetwarnings()
  
  print "21. list comprehension with local variables"
--- 491,494 ----