[Python-checkins] python/dist/src/Lib/test regrtest.py,1.77,1.78 test___all__.py,1.24,1.25 test_coercion.py,1.3,1.4 test_xmllib.py,1.8,1.9
tim_one@sourceforge.net
tim_one@sourceforge.net
Mon, 15 Apr 2002 17:01:11 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv8780/python/Lib/test
Modified Files:
regrtest.py test___all__.py test_coercion.py test_xmllib.py
Log Message:
It makes more sense to call resetwarnings() after every test runs than
to keep doing that in every test that wants to filter a warning.
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -d -r1.77 -r1.78
*** regrtest.py 15 Apr 2002 23:56:04 -0000 1.77
--- regrtest.py 16 Apr 2002 00:01:09 -0000 1.78
***************
*** 56,59 ****
--- 56,60 ----
import random
import StringIO
+ import warnings
import test_support
***************
*** 323,326 ****
--- 324,328 ----
finally:
sys.stdout = save_stdout
+ warnings.resetwarnings()
except (ImportError, test_support.TestSkipped), msg:
if not quiet:
Index: test___all__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test___all__.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** test___all__.py 15 Apr 2002 23:52:03 -0000 1.24
--- test___all__.py 16 Apr 2002 00:01:09 -0000 1.25
***************
*** 159,162 ****
check_all("xdrlib")
check_all("zipfile")
-
- warnings.resetwarnings()
--- 159,160 ----
Index: test_coercion.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_coercion.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_coercion.py 15 Apr 2002 23:52:03 -0000 1.3
--- test_coercion.py 16 Apr 2002 00:01:09 -0000 1.4
***************
*** 114,120 ****
r'complex divmod\(\), // and % are deprecated',
DeprecationWarning)
! try:
! do_infix_binops()
! do_prefix_binops()
! finally:
! warnings.resetwarnings()
--- 114,117 ----
r'complex divmod\(\), // and % are deprecated',
DeprecationWarning)
! do_infix_binops()
! do_prefix_binops()
Index: test_xmllib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_xmllib.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** test_xmllib.py 15 Apr 2002 23:52:04 -0000 1.8
--- test_xmllib.py 16 Apr 2002 00:01:09 -0000 1.9
***************
*** 33,38 ****
def test_main():
test_support.run_unittest(XMLParserTestCase)
- warnings.resetwarnings()
-
if __name__ == "__main__":
--- 33,36 ----