summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/math_factorial_intbig.py
blob: a4694b3d6807628349fbf2c55c414b0a6bb1f407 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try:
    import math

    math.factorial
except (ImportError, AttributeError):
    print("SKIP")
    raise SystemExit


for fun in (math.factorial,):
    for x in range(-1, 30):
        try:
            print("%d" % fun(x))
        except ValueError as e:
            print("ValueError")