mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #25928: Temporarily disable some tests in test_statistics in order
to sort out its assumptions about the as_integer_ratio() interface.
This commit is contained in:
parent
6f5470880e
commit
2335f44d8e
1 changed files with 3 additions and 0 deletions
|
@ -699,6 +699,7 @@ class ExactRatioTest(unittest.TestCase):
|
||||||
num, den = statistics._exact_ratio(x)
|
num, den = statistics._exact_ratio(x)
|
||||||
self.assertEqual(x, num/den)
|
self.assertEqual(x, num/den)
|
||||||
|
|
||||||
|
@unittest.skipIf(True, "temporarily disabled: see #25928")
|
||||||
def test_decimal(self):
|
def test_decimal(self):
|
||||||
D = Decimal
|
D = Decimal
|
||||||
_exact_ratio = statistics._exact_ratio
|
_exact_ratio = statistics._exact_ratio
|
||||||
|
@ -730,6 +731,7 @@ class ExactRatioTest(unittest.TestCase):
|
||||||
self.assertIs(ratio[1], None)
|
self.assertIs(ratio[1], None)
|
||||||
self.assertEqual(type(ratio[0]), type(nan))
|
self.assertEqual(type(ratio[0]), type(nan))
|
||||||
|
|
||||||
|
@unittest.skipIf(True, "temporarily disabled: see #25928")
|
||||||
def test_decimal_nan(self):
|
def test_decimal_nan(self):
|
||||||
NAN = Decimal("NAN")
|
NAN = Decimal("NAN")
|
||||||
sNAN = Decimal("sNAN")
|
sNAN = Decimal("sNAN")
|
||||||
|
@ -1258,6 +1260,7 @@ class SumSpecialValues(NumericTestCase):
|
||||||
with decimal.localcontext(decimal.BasicContext):
|
with decimal.localcontext(decimal.BasicContext):
|
||||||
self.assertRaises(decimal.InvalidOperation, statistics._sum, data)
|
self.assertRaises(decimal.InvalidOperation, statistics._sum, data)
|
||||||
|
|
||||||
|
@unittest.skipIf(True, "temporarily disabled: see #25928")
|
||||||
def test_decimal_snan_raises(self):
|
def test_decimal_snan_raises(self):
|
||||||
# Adding sNAN should raise InvalidOperation.
|
# Adding sNAN should raise InvalidOperation.
|
||||||
sNAN = Decimal('sNAN')
|
sNAN = Decimal('sNAN')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue