]> granicus.if.org Git - python/commitdiff
Issue #25928: Temporarily disable some tests in test_statistics in order
authorStefan Krah <skrah@bytereef.org>
Mon, 28 Dec 2015 23:11:36 +0000 (00:11 +0100)
committerStefan Krah <skrah@bytereef.org>
Mon, 28 Dec 2015 23:11:36 +0000 (00:11 +0100)
to sort out its assumptions about the as_integer_ratio() interface.

Lib/test/test_statistics.py

index 0089ae8dc60b00d2d48a5856670e1dfd1fa4b2eb..9a54fe12b8cbe9ca1bbd7dd7bd2766a31adae228 100644 (file)
@@ -699,6 +699,7 @@ class ExactRatioTest(unittest.TestCase):
             num, den = statistics._exact_ratio(x)
             self.assertEqual(x, num/den)
 
+    @unittest.skipIf(True, "temporarily disabled: see #25928")
     def test_decimal(self):
         D = Decimal
         _exact_ratio = statistics._exact_ratio
@@ -730,6 +731,7 @@ class ExactRatioTest(unittest.TestCase):
             self.assertIs(ratio[1], None)
             self.assertEqual(type(ratio[0]), type(nan))
 
+    @unittest.skipIf(True, "temporarily disabled: see #25928")
     def test_decimal_nan(self):
         NAN = Decimal("NAN")
         sNAN = Decimal("sNAN")
@@ -1258,6 +1260,7 @@ class SumSpecialValues(NumericTestCase):
         with decimal.localcontext(decimal.BasicContext):
             self.assertRaises(decimal.InvalidOperation, statistics._sum, data)
 
+    @unittest.skipIf(True, "temporarily disabled: see #25928")
     def test_decimal_snan_raises(self):
         # Adding sNAN should raise InvalidOperation.
         sNAN = Decimal('sNAN')