From: Mark Dickinson <mdickinson@enthought.com>
Date: Fri, 24 Aug 2012 18:51:00 +0000 (+0100)
Subject: Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
X-Git-Tag: v3.3.0rc1~9^2
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=448f57762ddb679125fccb48b40155747555635b;p=python

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

diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 3ff855fc1c..1a5094e14d 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)