[Python-checkins] python/dist/src/Lib/test test_decimal.py,1.5,1.6
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Jul 9 12:02:55 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28156/Lib/test
Modified Files:
test_decimal.py
Log Message:
Module and tests:
* Map conditions to related signals.
* Make contexts unhashable.
* Eliminate used "default" attribute in exception definitions.
* Eliminate the _filterfunc in favor of a straight list.
Docs:
* Eliminate documented references to conditions that are not signals.
* Eliminate parenthetical notes such as "1/0 --> Inf" which are no
longer true with the new defaults.
Index: test_decimal.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_decimal.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_decimal.py 5 Jul 2004 22:53:03 -0000 1.5
--- test_decimal.py 9 Jul 2004 10:02:52 -0000 1.6
***************
*** 61,70 ****
ErrorNames = {'clamped' : Clamped,
! 'conversion_syntax' : ConversionSyntax,
'division_by_zero' : DivisionByZero,
! 'division_impossible' : DivisionImpossible,
! 'division_undefined' : DivisionUndefined,
'inexact' : Inexact,
! 'invalid_context' : InvalidContext,
'invalid_operation' : InvalidOperation,
'overflow' : Overflow,
--- 61,70 ----
ErrorNames = {'clamped' : Clamped,
! 'conversion_syntax' : InvalidOperation,
'division_by_zero' : DivisionByZero,
! 'division_impossible' : InvalidOperation,
! 'division_undefined' : InvalidOperation,
'inexact' : Inexact,
! 'invalid_context' : InvalidOperation,
'invalid_operation' : InvalidOperation,
'overflow' : Overflow,
***************
*** 132,135 ****
--- 132,136 ----
for line in open(file).xreadlines():
line = line.replace('\r\n', '').replace('\n', '')
+ #print line
try:
t = self.eval_line(line)
***************
*** 649,653 ****
def test_floor_division(self):
- '''Test floor division in all its ways.'''
d1 = Decimal('5')
--- 650,653 ----
***************
*** 677,681 ****
def test_powering(self):
- '''Test powering in all its ways.'''
d1 = Decimal('5')
--- 677,680 ----
More information about the Python-checkins
mailing list