summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-08 16:33:06 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-08 16:33:06 (GMT)
commitd08fb83777eb4198b6a6573edd74589da1d8ecab (patch)
treec3a7f5fca4d57425e346c257448884c1b118c4c6 /Lib/test/test_decimal.py
parent015fa03058edbe2947a791f64461abf062267d0d (diff)
downloadcpython-d08fb83777eb4198b6a6573edd74589da1d8ecab.zip
cpython-d08fb83777eb4198b6a6573edd74589da1d8ecab.tar.gz
cpython-d08fb83777eb4198b6a6573edd74589da1d8ecab.tar.bz2
Merged revisions 75287 via svnmerge from
svn+ssh://pythondev@www.python.org/python/branches/py3k ................ r75287 | mark.dickinson | 2009-10-08 17:30:38 +0100 (Thu, 08 Oct 2009) | 9 lines Merged revisions 75286 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r75286 | mark.dickinson | 2009-10-08 17:28:39 +0100 (Thu, 08 Oct 2009) | 2 lines Update decimal test data to the most recent set from Mike Cowlishaw. ........ ................
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index e3e50f0..4bf9d3a 100644
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -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