[Python-checkins] cpython (2.7): Remove overeager test (don't depend on the sign of a nan; cf. issue #14521)

mark.dickinson python-checkins at python.org
Fri Aug 24 21:26:39 CEST 2012


http://hg.python.org/cpython/rev/31a7ff299698
changeset:   78755:31a7ff299698
branch:      2.7
user:        Mark Dickinson <mdickinson at enthought.com>
date:        Fri Aug 24 20:26:23 2012 +0100
summary:
  Remove overeager test (don't depend on the sign of a nan;  cf. issue #14521)

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
@@ -1454,8 +1454,6 @@
         for s in ('nan', 'nan1234', '-nan', '-nan2468'):
             f = float(Decimal(s))
             self.assertTrue(math.isnan(f))
-            sign = math.copysign(1.0, f)
-            self.assertEqual(sign, -1.0 if s.startswith('-') else 1.0)
 
     def test_snan_to_float(self):
         for s in ('snan', '-snan', 'snan1357', '-snan1234'):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list