Skip to content

Commit 210595d

Browse files
committed
Link to wikipedia
1 parent 96815eb commit 210595d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Lib/test/test_capi/test_float.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ def test_pack_unpack_roundtrip_for_nans(self):
200200
signaling = 0
201201
if platform.machine().startswith('parisc'):
202202
# HP PA RISC uses 0 for quiet
203+
# https://en.wikipedia.org/wiki/NaN#Encoding
203204
signaling = 1
204205
quiet = int(not signaling)
205206
if size == 8:

Lib/test/test_struct.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,7 @@ def test_half_float(self):
920920
# all exponent bits and the msb of the fraction should all be 1.
921921
if platform.machine().startswith('parisc'):
922922
# HP PA RISC uses 0 for quiet
923+
# https://en.wikipedia.org/wiki/NaN#Encoding
923924
expected = 0x7c
924925
else:
925926
expected = 0x7e

0 commit comments

Comments
 (0)