Skip to content

Commit f8c111d

Browse files
committed
Issue #16056: Rename test method in test_statistics to avoid conflict.
1 parent 5e193ac commit f8c111d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_statistics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,14 +991,14 @@ def test_float_mismatched_infs(self):
991991
result = statistics._sum([1, 2, inf, 3, -inf, 4])
992992
self.assertTrue(math.isnan(result))
993993

994-
def test_decimal_mismatched_infs_to_nan(self):
994+
def test_decimal_extendedcontext_mismatched_infs_to_nan(self):
995995
# Test adding Decimal INFs with opposite sign returns NAN.
996996
inf = Decimal('inf')
997997
data = [1, 2, inf, 3, -inf, 4]
998998
with decimal.localcontext(decimal.ExtendedContext):
999999
self.assertTrue(math.isnan(statistics._sum(data)))
10001000

1001-
def test_decimal_mismatched_infs_to_nan(self):
1001+
def test_decimal_basiccontext_mismatched_infs_to_nan(self):
10021002
# Test adding Decimal INFs with opposite sign raises InvalidOperation.
10031003
inf = Decimal('inf')
10041004
data = [1, 2, inf, 3, -inf, 4]

0 commit comments

Comments
 (0)