[Python-checkins] python/dist/src/Lib/test test___all__.py,1.23,1.24 test_coercion.py,1.2,1.3 test_xmllib.py,1.7,1.8
tim_one@sourceforge.net
tim_one@sourceforge.net
Mon, 15 Apr 2002 16:52:06 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv6489/python/Lib/test
Modified Files:
test___all__.py test_coercion.py test_xmllib.py
Log Message:
Reduce the number of test-suite DeprecationWarnings; start adding
resetwarnings() calls too.
Index: test___all__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___all__.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** test___all__.py 11 Apr 2002 20:04:12 -0000 1.23
--- test___all__.py 15 Apr 2002 23:52:03 -0000 1.24
***************
*** 159,160 ****
--- 159,162 ----
check_all("xdrlib")
check_all("zipfile")
+
+ warnings.resetwarnings()
Index: test_coercion.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_coercion.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_coercion.py 3 Jan 2001 01:52:10 -0000 1.2
--- test_coercion.py 15 Apr 2002 23:52:03 -0000 1.3
***************
*** 1,4 ****
--- 1,5 ----
import copy
import sys
+ import warnings
# Fake a number that implements numeric methods through __coerce__
***************
*** 110,113 ****
print '=', x
! do_infix_binops()
! do_prefix_binops()
--- 111,120 ----
print '=', x
! warnings.filterwarnings("ignore",
! r'complex divmod\(\), // and % are deprecated',
! DeprecationWarning)
! try:
! do_infix_binops()
! do_prefix_binops()
! finally:
! warnings.resetwarnings()
Index: test_xmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_xmllib.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_xmllib.py 11 Apr 2002 20:18:40 -0000 1.7
--- test_xmllib.py 15 Apr 2002 23:52:04 -0000 1.8
***************
*** 17,21 ****
warnings.filterwarnings("ignore", ".* xmllib .* obsolete.*",
DeprecationWarning)
- del warnings
import test_support
--- 17,20 ----
***************
*** 34,37 ****
--- 33,37 ----
def test_main():
test_support.run_unittest(XMLParserTestCase)
+ warnings.resetwarnings()