]> granicus.if.org Git - python/commitdiff
Issue #16056: Rename test method in test_statistics to avoid conflict.
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 24 Sep 2014 12:03:25 +0000 (15:03 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 24 Sep 2014 12:03:25 +0000 (15:03 +0300)
Lib/test/test_statistics.py

index 6f5c9a649d4273eb39fbbd45e423c2d2cb0227f4..f1da21ed2ba2d485650da858f75e54d1b685faeb 100644 (file)
@@ -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]