[Python-checkins] cpython (3.2): Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
mark.dickinson
python-checkins at python.org
Fri Aug 24 20:51:49 CEST 2012
http://hg.python.org/cpython/rev/ffbda5a1d588
changeset: 78751:ffbda5a1d588
branch: 3.2
parent: 78749:a931e44ffbe1
user: Mark Dickinson <mdickinson at enthought.com>
date: Fri Aug 24 19:51:00 2012 +0100
summary:
Remove incorrect lines (meant for cdecimal) from recently added Decimal tests.
files:
Lib/test/test_decimal.py | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_decimal.py b/Lib/test/test_decimal.py
--- a/Lib/test/test_decimal.py
+++ b/Lib/test/test_decimal.py
@@ -1521,7 +1521,6 @@
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 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list