We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0333e84 commit a28a084Copy full SHA for a28a084
tests/validators/test_float.py
@@ -1,5 +1,6 @@
1
import math
2
import re
3
+import sys
4
from decimal import Decimal
5
from typing import Any
6
@@ -11,8 +12,8 @@
11
12
13
from ..conftest import Err, PyAndJson, plain_repr
14
-i64_max = 9_223_372_036_854_775_807
15
-f64_max = 1.7976931348623157e308
+i64_max = (2**63) - 1
16
+f64_max = sys.float_info.max
17
18
19
@pytest.mark.parametrize(
@@ -22,6 +23,7 @@
22
23
(1, 1),
24
(42, 42),
25
(i64_max + 1, i64_max + 1),
26
+ (f64_max, f64_max),
27
('42', 42),
28
(' 42.1 ', 42.1),
29
('42.123', 42.123),
tests/validators/test_int.py
@@ -11,7 +11,7 @@
0 commit comments