summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2014-09-24 15:03:25 +0300
committerBerker Peksag <berker.peksag@gmail.com>2014-09-24 15:03:25 +0300
commite31e798704b904f8f70b355c86dbc7e6d9bf8911 (patch)
treeafaad53dba129e0e5a9341878a4d580f660757ac
parent159a77af772320a92680f7d3a4c9631632e589a1 (diff)
downloadcpython-e31e798704b904f8f70b355c86dbc7e6d9bf8911.tar.gz
Issue #16056: Rename test method in test_statistics to avoid conflict.
-rw-r--r--Lib/test/test_statistics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_statistics.py b/Lib/test/test_statistics.py
index 6f5c9a649d..f1da21ed2b 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]