File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,9 @@ def clean_up(a: list[str]) -> list[str]:
233233 for p in prefix , prefix .replace (os .sep , "/" ):
234234 if p != "/" and p != "//" and p != "\\ " and p != "\\ \\ " :
235235 ss = ss .replace (p , "" )
236+ # Replace memory address with zeros
237+ if "at 0x" in ss :
238+ ss = re .sub (r"(at 0x)\w+>" , r"\g<1>000000000000>" , ss )
236239 # Ignore spaces at end of line.
237240 ss = re .sub (" +$" , "" , ss )
238241 # Remove pwd from driver.py's path
Original file line number Diff line number Diff line change @@ -3035,7 +3035,7 @@ f = native.F()
30353035del f
30363036
30373037[out]
3038- Exception ignored in: <slot wrapper '__del__' of 'F' objects >
3038+ Exception ignored in: <native.F object at 0x000000000000 >
30393039Traceback (most recent call last):
30403040 File "native.py", line 5, in __del__
30413041 raise Exception("e2")
You can’t perform that action at this time.
0 commit comments