[Python-checkins] python/dist/src/Lib/test test_decimal.py,1.6,1.7
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Jul 9 12:52:58 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2966/test
Modified Files:
test_decimal.py
Log Message:
* Update the test suite to reflect that ConversionSyntax was no longer
public.
* Removed the non-signal conditions from __all__.
* Removed the XXX comment which was resolved.
* Use ^ instead of operator.xor
* Remove the threading lock which is no longer necessary.
Index: test_decimal.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_decimal.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** test_decimal.py 9 Jul 2004 10:02:52 -0000 1.6
--- test_decimal.py 9 Jul 2004 10:52:54 -0000 1.7
***************
*** 135,139 ****
try:
t = self.eval_line(line)
! except ConversionSyntax:
print 'Error in test cases:'
print line
--- 135,139 ----
try:
t = self.eval_line(line)
! except InvalidOperation:
print 'Error in test cases:'
print line
***************
*** 190,194 ****
exceptions = L[1:]
except (TypeError, AttributeError, IndexError):
! raise ConversionSyntax
def FixQuotes(val):
val = val.replace("''", 'SingleQuote').replace('""', 'DoubleQuote')
--- 190,194 ----
exceptions = L[1:]
except (TypeError, AttributeError, IndexError):
! raise InvalidOperation
def FixQuotes(val):
val = val.replace("''", 'SingleQuote').replace('""', 'DoubleQuote')
More information about the Python-checkins
mailing list