diff options
author | Steven D'Aprano <steve@pearwood.info> | 2016-08-24 03:54:31 (GMT) |
---|---|---|
committer | Steven D'Aprano <steve@pearwood.info> | 2016-08-24 03:54:31 (GMT) |
commit | a790fe7ff86f193670b3d8287b22c72cbe675c7b (patch) | |
tree | 75543cee4006d69ca4c28621df0f5765f05cc63e /Lib/test | |
parent | d6ea3011c500ec2fd7793ebc593bb62a2217fa8a (diff) | |
download | cpython-a790fe7ff86f193670b3d8287b22c72cbe675c7b.zip cpython-a790fe7ff86f193670b3d8287b22c72cbe675c7b.tar.gz cpython-a790fe7ff86f193670b3d8287b22c72cbe675c7b.tar.bz2 |
Remove expected failure from test of _product internal function.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_statistics.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py index 9443ff0..6cac709 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -1041,11 +1041,11 @@ class Test_Product(NumericTestCase): self.assertEqual(mant, F(10)) self.assertTrue(isinstance(mant, F)) - @unittest.expectedFailure def test_decimal(self): D = Decimal data = [D('24.5'), D('17.6'), D('0.025'), D('1.3')] - assert False + expected = D('14.014000') + self.assertEqual(statistics._product(data), (0, expected)) def test_mixed_decimal_float(self): # Test that mixed Decimal and float raises. |