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'): ...@@ -801,12 +801,13 @@ if os.environ.get('XML_RESULTS'):
compile_result_dir = os.environ['XML_RESULTS'] compile_result_dir = os.environ['XML_RESULTS']
def record_results(func): def record_results(func):
def with_record(*args): def with_record(*args):
t = time.time()
success = True
try: try:
t = time.time() try:
success = True func(*args)
func(*args) except:
except: success = False
success = False
finally: finally:
t = time.time() - t t = time.time() - t
module = fully_qualifeid_name(args[0]) 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