File: test_timer_big_int.patch

package info (click to toggle)
dolfin 2019.2.0~legacy20240219.1c52e83-26
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,016 kB
  • sloc: xml: 104,040; cpp: 102,227; python: 24,356; sh: 475; makefile: 332; javascript: 226
file content (19 lines) | stat: -rw-r--r-- 407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/python/test/unit/common/test_timer.py
+++ b/python/test/unit/common/test_timer.py
@@ -21,6 +21,7 @@
 
 import gc
 import random
+import sys
 from time import sleep
 
 from dolfin import *
@@ -35,7 +36,7 @@
 
 def get_random_task_name():
     """Get pseudo-random string"""
-    return hex(random.randint(0, 1e32))
+    return hex(random.randint(0, sys.maxsize))
 
 
 def test_context_manager_named():