Skip to content

Commit a28a084

Browse files
committed
Feedback
1 parent 0333e84 commit a28a084

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/validators/test_float.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import math
22
import re
3+
import sys
34
from decimal import Decimal
45
from typing import Any
56

@@ -11,8 +12,8 @@
1112

1213
from ..conftest import Err, PyAndJson, plain_repr
1314

14-
i64_max = 9_223_372_036_854_775_807
15-
f64_max = 1.7976931348623157e308
15+
i64_max = (2**63) - 1
16+
f64_max = sys.float_info.max
1617

1718

1819
@pytest.mark.parametrize(
@@ -22,6 +23,7 @@
2223
(1, 1),
2324
(42, 42),
2425
(i64_max + 1, i64_max + 1),
26+
(f64_max, f64_max),
2527
('42', 42),
2628
(' 42.1 ', 42.1),
2729
('42.123', 42.123),

tests/validators/test_int.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from ..conftest import Err, PyAndJson, plain_repr
1313

14-
i64_max = 9_223_372_036_854_775_807
14+
i64_max = (2**63) - 1
1515

1616

1717
@pytest.mark.parametrize(

0 commit comments

Comments
 (0)