summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_decimal.py
diff options
context:
space:
mode:
authorMark Dickinson <mdickinson@enthought.com>2012-08-24 18:51:00 (GMT)
committerMark Dickinson <mdickinson@enthought.com>2012-08-24 18:51:00 (GMT)
commit448f57762ddb679125fccb48b40155747555635b (patch)
tree2c7c79533bf555e532b31e96d3175ba6d1f00d05 /Lib/test/test_decimal.py
parente4204bcfb79a6453915c194e9aef25550ff165d2 (diff)
downloadcpython-448f57762ddb679125fccb48b40155747555635b.zip
cpython-448f57762ddb679125fccb48b40155747555635b.tar.gz
cpython-448f57762ddb679125fccb48b40155747555635b.tar.bz2
Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
Diffstat (limited to 'Lib/test/test_decimal.py')
-rw-r--r--Lib/test/test_decimal.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
index 3ff855f..1a5094e 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)