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

This commit is contained in:
Mark Dickinson 2012-08-24 19:51:00 +01:00
parent e4204bcfb7
commit 448f57762d
1 changed files with 0 additions and 2 deletions

View File

@ -1521,7 +1521,6 @@ class DecimalUsabilityTest(unittest.TestCase):
def test_nan_to_float(self):
# Test conversions of decimal NANs to float.
# See http://bugs.python.org/issue15544
Decimal = self.decimal.Decimal
for s in ('nan', 'nan1234', '-nan', '-nan2468'):
f = float(Decimal(s))
self.assertTrue(math.isnan(f))
@ -1529,7 +1528,6 @@ class DecimalUsabilityTest(unittest.TestCase):
self.assertEqual(sign, -1.0 if s.startswith('-') else 1.0)
def test_snan_to_float(self):
Decimal = self.decimal.Decimal
for s in ('snan', '-snan', 'snan1357', '-snan1234'):
d = Decimal(s)
self.assertRaises(ValueError, float, d)