[Python-checkins] CVS: python/dist/src/Lib/test test___all__.py,1.19,1.20

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 04 Sep 2001 08:22:04 -0700


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

Modified Files:
	test___all__.py 
Log Message:
Suppressing all DeprecationWarning messages was a bit of a problem for
the -Qwarnall option, so I've changed this to only filter out the one
warning that's a problem in practice.


Index: test___all__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___all__.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** test___all__.py	2001/08/09 21:40:30	1.19
--- test___all__.py	2001/09/04 15:22:02	1.20
***************
*** 3,9 ****
  
  def check_all(modname):
-     import warnings
-     warnings.filterwarnings("ignore", "", DeprecationWarning, modname)
- 
      names = {}
      try:
--- 3,6 ----
***************
*** 123,126 ****
--- 120,126 ----
  check_all("re")
  check_all("reconvert")
+ import warnings
+ warnings.filterwarnings("ignore", ".* regsub .*", DeprecationWarning, "regsub",
+                         append=1)
  check_all("regsub")
  check_all("repr")