File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ def test_denial_of_service_prevented_int_to_str(self):
638
638
maxdigits = sys .get_int_max_str_digits ()
639
639
assert maxdigits < 50_000 , maxdigits # A test prerequisite.
640
640
get_time = time .process_time
641
- if get_time () <= 0 : # some platforms like WASM lacks process_time()
641
+ if get_time () <= 0 : # some platforms like WASM lack process_time()
642
642
get_time = time .monotonic
643
643
644
644
huge_int = int (f'0x{ "c" * 65_000 } ' , base = 16 ) # 78268 decimal digits.
@@ -682,7 +682,7 @@ def test_denial_of_service_prevented_str_to_int(self):
682
682
maxdigits = sys .get_int_max_str_digits ()
683
683
assert maxdigits < 100_000 , maxdigits # A test prerequisite.
684
684
get_time = time .process_time
685
- if get_time () <= 0 : # some platforms like WASM lacks process_time()
685
+ if get_time () <= 0 : # some platforms like WASM lack process_time()
686
686
get_time = time .monotonic
687
687
688
688
huge = '8' * 200_000
You can’t perform that action at this time.
0 commit comments