summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-07-09 10:52:54 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-07-09 10:52:54 (GMT)
commitd87ac8f24da5dce860b559b69e6af59edd2c3eec (patch)
tree54d4c04c854a60085fedb737c2c4a7cb8ae815d7 /Lib/test/test_decimal.py
parent5aa478badfabb005e6f17c98fcf007a0bc54eecc (diff)
downloadcpython-d87ac8f24da5dce860b559b69e6af59edd2c3eec.zip
cpython-d87ac8f24da5dce860b559b69e6af59edd2c3eec.tar.gz
cpython-d87ac8f24da5dce860b559b69e6af59edd2c3eec.tar.bz2
* 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.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index e6d9389..dc202f3 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -134,7 +134,7 @@ class DecimalTest(unittest.TestCase):
#print line
try:
t = self.eval_line(line)
- except ConversionSyntax:
+ except InvalidOperation:
print 'Error in test cases:'
print line
continue
@@ -189,7 +189,7 @@ class DecimalTest(unittest.TestCase):
ans = L[0]
exceptions = L[1:]
except (TypeError, AttributeError, IndexError):
- raise ConversionSyntax
+ raise InvalidOperation
def FixQuotes(val):
val = val.replace("''", 'SingleQuote').replace('""', 'DoubleQuote')
val = val.replace("'", '').replace('"', '')