[Python-checkins] r83898 - python/branches/py3k-dtoa/Lib/test/test_dtoa.py
mark.dickinson
python-checkins at python.org
Mon Aug 9 20:52:12 CEST 2010
Author: mark.dickinson
Date: Mon Aug 9 20:52:12 2010
New Revision: 83898
Log:
Skip test_dtoa on platforms that don't have short float repr.
Modified:
python/branches/py3k-dtoa/Lib/test/test_dtoa.py
Modified: python/branches/py3k-dtoa/Lib/test/test_dtoa.py
==============================================================================
--- python/branches/py3k-dtoa/Lib/test/test_dtoa.py (original)
+++ python/branches/py3k-dtoa/Lib/test/test_dtoa.py Mon Aug 9 20:52:12 2010
@@ -6,6 +6,10 @@
import test.support
import sys
+if getattr(sys, 'float_repr_style', '') != 'short':
+ raise unittest.SkipTest('correctly-rounded string->float conversions '
+ 'not available on this system')
+
def bitfield(n, a, b):
"""Extract bits a through b - 1 (inclusive) of an integer n."""
return (n >> a) & ((1 << b - a) - 1)
More information about the Python-checkins
mailing list