Skip to content

Commit 04356f7

Browse files
committed
address review: document _have_ieee_doubles + a quick exit
1 parent b93f48c commit 04356f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/support/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,11 @@ def dec(*args, **kwargs):
518518
# for a discussion of this number.
519519
SOCK_MAX_SIZE = 16 * 1024 * 1024 + 1
520520

521+
# This helper exists for alternative Python implementations, that use
522+
# the CPython test suite.
521523
def _have_ieee_doubles():
524+
if sys.implementation.name == 'cpython':
525+
return True
522526
import math
523527
import struct
524528
# Check parameters for encoding of floats; a quick exit

0 commit comments

Comments
 (0)