[Python-checkins] cpython (merge 3.4 -> default): Issue #16056: Rename test method in test_statistics to avoid conflict.

berker.peksag python-checkins at python.org
Wed Sep 24 14:03:57 CEST 2014


https://hg.python.org/cpython/rev/c49d7f4d1c04
changeset:   92562:c49d7f4d1c04
parent:      92560:e9d4288c32de
parent:      92561:6d44906344f4
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Wed Sep 24 15:03:57 2014 +0300
summary:
  Issue #16056: Rename test method in test_statistics to avoid conflict.

files:
  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
--- a/Lib/test/test_statistics.py
+++ b/Lib/test/test_statistics.py
@@ -991,14 +991,14 @@
         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]

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list