mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
* 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.
This commit is contained in:
parent
5aa478badf
commit
d87ac8f24d
2 changed files with 6 additions and 18 deletions
|
@ -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('"', '')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue