diff -r 94edc0f0002f Lib/test/test_statistics.py --- a/Lib/test/test_statistics.py Tue Feb 25 16:46:41 2014 -0800 +++ b/Lib/test/test_statistics.py Wed Feb 26 18:42:53 2014 +0800 @@ -9,7 +9,6 @@ import math import random import sys -import types import unittest from decimal import Decimal @@ -998,7 +997,7 @@ with decimal.localcontext(decimal.ExtendedContext): self.assertTrue(math.isnan(statistics._sum(data))) - def test_decimal_mismatched_infs_to_nan(self): + def test_decimal_mismatched_infs_raises(self): # Test adding Decimal INFs with opposite sign raises InvalidOperation. inf = Decimal('inf') data = [1, 2, inf, 3, -inf, 4]