From 448f57762ddb679125fccb48b40155747555635b Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Fri, 24 Aug 2012 19:51:00 +0100 Subject: [PATCH] Remove incorrect lines (meant for cdecimal) from recently added Decimal tests. --- Lib/test/test_decimal.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py index 3ff855fc1cc..1a5094e14dd 100644 --- a/Lib/test/test_decimal.py +++ b/Lib/test/test_decimal.py @@ -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)