We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf2b0a commit 907bfb1Copy full SHA for 907bfb1
Lib/test/support/__init__.py
@@ -520,10 +520,11 @@ def dec(*args, **kwargs):
520
521
def _have_ieee_doubles():
522
import math
523
+ import struct
524
# Check parameters for encoding of floats; a quick exit
525
# if they aren't same as for IEC 60559 doubles. Check
526
# also that subnormals are present.
- if (ctypes.sizeof(ctypes.c_double) != 8
527
+ if (struct.calcsize('d') != 8
528
or sys.float_info.radix != 2
529
or sys.float_info.mant_dig != 53
530
or sys.float_info.dig != 15
0 commit comments