Skip to content

Commit 2aabbc9

Browse files
committed
gh-149755: fix Modules/_decimal/tests/deccheck.py
This script was broken by 511ca94 and a07da09.
1 parent 83b3354 commit 2aabbc9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Modules/_decimal/tests/deccheck.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353
from formathelper import rand_format, rand_locale
5454
from _pydecimal import _dec_from_triple
5555

56+
sys.set_int_max_str_digits(0)
57+
5658
C = import_fresh_module('decimal', fresh=['_decimal'])
5759
P = import_fresh_module('decimal', blocked=['_decimal'])
5860
EXIT_STATUS = 0
@@ -969,6 +971,8 @@ def test_unary(method, prec, exp_range, restricted_range, itr, stat):
969971
try:
970972
if not convert(t):
971973
continue
974+
if t.funcname == '__hash__' and t.cop[0].is_nan():
975+
continue
972976
callfuncs(t)
973977
verify(t, stat)
974978
except VerifyError as err:

0 commit comments

Comments
 (0)