##// END OF EJS Templates
tests: fix `filtertraceback.py` to handle contiguous "File" lines...
Matt Harbison -
r53325:8431296a default
parent child Browse files
Show More
@@ -37,8 +37,13 for line in sys.stdin:
37 continue
37 continue
38
38
39 elif state == 'file':
39 elif state == 'file':
40 # Ignore lines after " File "
40 # Ignore one line after " File ", but sometimes "File" lines are
41 state = 'tb'
41 # contiguous:
42 # File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
43 # File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
44 # File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
45 if not line.startswith(' File '):
46 state = 'tb'
42 continue
47 continue
43
48
44 print(line, end='')
49 print(line, end='')
General Comments 0
You need to be logged in to leave comments. Login now