File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
graalpython/com.oracle.graal.python.test/src Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -152,18 +152,24 @@ def run_test(self, func):
152
152
pass
153
153
else :
154
154
def do_run ():
155
+ start = time .monotonic ()
155
156
r = self .run_safely (func )
157
+ end = time .monotonic () - start
156
158
with print_lock :
157
- self .success () if r else self .failure ()
159
+ self .success (end ) if r else self .failure (end )
158
160
ThreadPool .start (do_run )
159
161
160
- def success (self ):
162
+ def success (self , time ):
161
163
self .passed += 1
164
+ if verbose :
165
+ print ("[%.3fs]" % time , end = " " )
162
166
print ("." , end = "" , flush = True )
163
167
164
- def failure (self ):
168
+ def failure (self , time ):
165
169
self .failed += 1
166
170
fail_msg = FAIL + BOLD + "F" + ENDC if verbose else "F"
171
+ if verbose :
172
+ print ("[%.3fs]" % time , end = " " )
167
173
print (fail_msg , end = "" , flush = True )
168
174
169
175
def assertIsInstance (self , value , cls ):
You can’t perform that action at this time.
0 commit comments