mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Update decimal test data to the most recent set from Mike Cowlishaw.
This commit is contained in:
parent
3d830828de
commit
539bff4234
143 changed files with 211 additions and 148 deletions
|
|
@ -63,6 +63,13 @@ directory = testdir + os.sep + TESTDATADIR + os.sep
|
|||
|
||||
skip_expected = not os.path.isdir(directory)
|
||||
|
||||
# list of individual .decTest test ids that correspond to tests that
|
||||
# we're skipping for one reason or another.
|
||||
skipped_test_ids = [
|
||||
'scbx164', # skipping apparently implementation-specific scaleb
|
||||
'scbx165', # tests, pending clarification of scaleb rules.
|
||||
]
|
||||
|
||||
# Make sure it actually raises errors when not expected and caught in flags
|
||||
# Slower, since it runs some things several times.
|
||||
EXTENDEDERRORTEST = False
|
||||
|
|
@ -262,6 +269,10 @@ class DecimalTest(unittest.TestCase):
|
|||
val = val.replace("'", '').replace('"', '')
|
||||
val = val.replace('SingleQuote', "'").replace('DoubleQuote', '"')
|
||||
return val
|
||||
|
||||
if id in skipped_test_ids:
|
||||
return
|
||||
|
||||
fname = nameAdapter.get(funct, funct)
|
||||
if fname == 'rescale':
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue