[Jython-checkins] jython: Add skip for spurious failing test in test_math.

jeff.allen jython-checkins at python.org
Tue Jan 6 20:22:59 CET 2015


https://hg.python.org/jython/rev/50f75e697bf0
changeset:   7508:50f75e697bf0
user:        Jeff Allen <ja.py at farowl.co.uk>
date:        Mon Jan 05 15:54:24 2015 +0000
summary:
  Add skip for spurious failing test in test_math.

test_files fails now we have beefed up the test cases, but only
because it effectively requires bit-perfect answers for large
numbers. Our replacement in test_math_jy is a sufficient test.

files:
  Lib/test/test_math.py |  3 ++-
  1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py
--- a/Lib/test/test_math.py
+++ b/Lib/test/test_math.py
@@ -1,7 +1,7 @@
 # Python test set -- math module
 # XXXX Should not do tests around zero only
 
-from test.test_support import run_unittest, verbose
+from test.test_support import run_unittest, verbose, is_jython
 import unittest
 import math
 import os
@@ -933,6 +933,7 @@
             else:
                 self.fail("sqrt(-1) didn't raise ValueError")
 
+    @unittest.skipIf(is_jython, "superseded in test_math_jy (don't fix me)")
     @requires_IEEE_754
     def test_testfile(self):
         for id, fn, ar, ai, er, ei, flags in parse_testfile(test_file):

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list