Commit 48a63f58 authored by Stefan Behnel's avatar Stefan Behnel

Py2.4 fix

parent cf42b0a0
......@@ -801,12 +801,13 @@ if os.environ.get('XML_RESULTS'):
compile_result_dir = os.environ['XML_RESULTS']
def record_results(func):
def with_record(*args):
t = time.time()
success = True
try:
t = time.time()
success = True
func(*args)
except:
success = False
try:
func(*args)
except:
success = False
finally:
t = time.time() - t
module = fully_qualifeid_name(args[0])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment