[Python-checkins] python/dist/src/Lib/test test_descr.py,1.113.4.13,1.113.4.14 test_coercion.py,1.2,1.2.24.1
anthonybaxter@sourceforge.net
anthonybaxter@sourceforge.net
2002年4月22日 21:02:58 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv23134
Modified Files:
Tag: release22-maint
test_descr.py test_coercion.py
Log Message:
backport some warnings filters to shut up complaints about complex
divmod &c. Should probably be cleaned up properly so that the tests
don't call that.
Index: test_descr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_descr.py,v
retrieving revision 1.113.4.13
retrieving revision 1.113.4.14
diff -C2 -d -r1.113.4.13 -r1.113.4.14
*** test_descr.py 18 Apr 2002 05:10:58 -0000 1.113.4.13
--- test_descr.py 23 Apr 2002 04:02:54 -0000 1.113.4.14
***************
*** 3,6 ****
--- 3,11 ----
from test_support import verify, vereq, verbose, TestFailed, TESTFN
from copy import deepcopy
+ import warnings
+
+ warnings.filterwarnings("ignore",
+ r'complex divmod\(\), // and % are deprecated$',
+ DeprecationWarning, r'(<string>|test_descr)$')
def veris(a, b):
Index: test_coercion.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_coercion.py,v
retrieving revision 1.2
retrieving revision 1.2.24.1
diff -C2 -d -r1.2 -r1.2.24.1
*** test_coercion.py 3 Jan 2001 01:52:10 -0000 1.2
--- test_coercion.py 23 Apr 2002 04:02:55 -0000 1.2.24.1
***************
*** 1,4 ****
--- 1,5 ----
import copy
import sys
+ import warnings
# Fake a number that implements numeric methods through __coerce__
***************
*** 110,113 ****
--- 111,118 ----
print '=', x
+ warnings.filterwarnings("ignore",
+ r'complex divmod\(\), // and % are deprecated',
+ DeprecationWarning,
+ r'test_coercion$')
do_infix_binops()
do_prefix_binops()