Commit 7dd7f82a authored by Jérome Perrin's avatar Jérome Perrin

UnitTest: Fix components tracebacks when Sequence module is imported

parent e6fa2284
......@@ -51,7 +51,7 @@ def special_extract_tb(tb, limit = None):
filename = co.co_filename
name = co.co_name
linecache.checkcache(filename)
line = linecache.getline(filename, lineno)
line = linecache.getline(filename, lineno, f.f_globals)
if line: line = line.strip()
else: line = None
......
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