[Python-checkins] python/dist/src/Lib/test test_cmath.py,1.7,1.8
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Jun 14 03:40:12 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29762/Lib/test
Modified Files:
test_cmath.py
Log Message:
Patch #826074: cmath.log optional base argument, fixes #823209
(Contributed by Andrew Gaul.)
Index: test_cmath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_cmath.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_cmath.py 23 Jul 2002 19:03:46 -0000 1.7
--- test_cmath.py 14 Jun 2004 07:40:09 -0000 1.8
***************
*** 3,8 ****
Roger E. Masse
"""
! import cmath
! from test.test_support import verbose
testdict = {'acos' : 1.0,
--- 3,25 ----
Roger E. Masse
"""
! import cmath, math
! from test.test_support import verbose, verify, TestFailed
!
! verify(abs(cmath.log(10) - math.log(10)) < 1e-9)
! verify(abs(cmath.log(10,2) - math.log(10,2)) < 1e-9)
! try:
! cmath.log('a')
! except TypeError:
! pass
! else:
! raise TestFailed
!
! try:
! cmath.log(10, 'a')
! except TypeError:
! pass
! else:
! raise TestFailed
!
testdict = {'acos' : 1.0,
More information about the Python-checkins
mailing list