diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2014-09-24 12:03:57 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2014-09-24 12:03:57 (GMT) |
commit | cf8409888457e130b45295e9de5de51309d224e0 (patch) | |
tree | e5c8ef31de80522efe60ae9991c4a2ce0755989e /Lib | |
parent | e9a086bf010626d0e0af54693db776ccda76b5c4 (diff) | |
parent | f8c111d4d76018f35222ca7bd0ee55e20a3c154c (diff) | |
download | cpython-cf8409888457e130b45295e9de5de51309d224e0.zip cpython-cf8409888457e130b45295e9de5de51309d224e0.tar.gz cpython-cf8409888457e130b45295e9de5de51309d224e0.tar.bz2 |
Issue #16056: Rename test method in test_statistics to avoid conflict.
Diffstat (limited to 'Lib')
-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 6f5c9a6..f1da21e 100644 --- a/Lib/test/test_statistics.py +++ b/Lib/test/test_statistics.py @@ -991,14 +991,14 @@ class SumSpecialValues(NumericTestCase): result = statistics._sum([1, 2, inf, 3, -inf, 4]) self.assertTrue(math.isnan(result)) - def test_decimal_mismatched_infs_to_nan(self): + def test_decimal_extendedcontext_mismatched_infs_to_nan(self): # Test adding Decimal INFs with opposite sign returns NAN. inf = Decimal('inf') data = [1, 2, inf, 3, -inf, 4] with decimal.localcontext(decimal.ExtendedContext): self.assertTrue(math.isnan(statistics._sum(data))) - def test_decimal_mismatched_infs_to_nan(self): + def test_decimal_basiccontext_mismatched_infs_to_nan(self): # Test adding Decimal INFs with opposite sign raises InvalidOperation. inf = Decimal('inf') data = [1, 2, inf, 3, -inf, 4] |