Debian Codegraph @

debian/patches/test_timer_big_int.patch

raw
1 --- a/python/test/unit/common/test_timer.py
2 +++ b/python/test/unit/common/test_timer.py
3 @@ -21,6 +21,7 @@
4
5 import gc
6 import random
7 +import sys
8 from time import sleep
9
10 from dolfin import *
11 @@ -35,7 +36,7 @@
12
13 def get_random_task_name():
14 """Get pseudo-random string"""
15 - return hex(random.randint(0, 1e32))
16 + return hex(random.randint(0, sys.maxsize))
17
18
19 def test_context_manager_named():