diff --git a/tests/test_discovery_sample/doctests.py b/tests/test_discovery_sample/doctests.py index 4cc2a2105b..6d9403442c 100644 --- a/tests/test_discovery_sample/doctests.py +++ b/tests/test_discovery_sample/doctests.py @@ -9,8 +9,8 @@ def factorial(n): >>> [factorial(n) for n in range(6)] [1, 1, 2, 6, 24, 120] - >>> factorial(30) - 265252859812191058636308480000000 + >>> factorial(30) # doctest: +ELLIPSIS + 265252859812191058636308480000000... >>> factorial(-1) Traceback (most recent call last): ... @@ -21,8 +21,8 @@ def factorial(n): Traceback (most recent call last): ... ValueError: n must be exact integer - >>> factorial(30.0) - 265252859812191058636308480000000 + >>> factorial(30.0) # doctest: +ELLIPSIS + 265252859812191058636308480000000... It must also not be ridiculously large: >>> factorial(1e100)