Commit abe2fada authored by Mark Dickinson's avatar Mark Dickinson

Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.

parent 0c61072f
...@@ -1521,7 +1521,6 @@ class DecimalUsabilityTest(unittest.TestCase): ...@@ -1521,7 +1521,6 @@ class DecimalUsabilityTest(unittest.TestCase):
def test_nan_to_float(self): def test_nan_to_float(self):
# Test conversions of decimal NANs to float. # Test conversions of decimal NANs to float.
# See http://bugs.python.org/issue15544 # See http://bugs.python.org/issue15544
Decimal = self.decimal.Decimal
for s in ('nan', 'nan1234', '-nan', '-nan2468'): for s in ('nan', 'nan1234', '-nan', '-nan2468'):
f = float(Decimal(s)) f = float(Decimal(s))
self.assertTrue(math.isnan(f)) self.assertTrue(math.isnan(f))
...@@ -1529,7 +1528,6 @@ class DecimalUsabilityTest(unittest.TestCase): ...@@ -1529,7 +1528,6 @@ class DecimalUsabilityTest(unittest.TestCase):
self.assertEqual(sign, -1.0 if s.startswith('-') else 1.0) self.assertEqual(sign, -1.0 if s.startswith('-') else 1.0)
def test_snan_to_float(self): def test_snan_to_float(self):
Decimal = self.decimal.Decimal
for s in ('snan', '-snan', 'snan1357', '-snan1234'): for s in ('snan', '-snan', 'snan1357', '-snan1234'):
d = Decimal(s) d = Decimal(s)
self.assertRaises(ValueError, float, d) self.assertRaises(ValueError, float, d)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment