Skip to content

Commit 9a2bb0a

Browse files
committed
Update test output
1 parent d6b6d79 commit 9a2bb0a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mypy/test/helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

mypyc/test-data/run-classes.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3035,7 +3035,7 @@ f = native.F()
30353035
del f
30363036

30373037
[out]
3038-
Exception ignored in: <slot wrapper '__del__' of 'F' objects>
3038+
Exception ignored in: <native.F object at 0x000000000000>
30393039
Traceback (most recent call last):
30403040
File "native.py", line 5, in __del__
30413041
raise Exception("e2")

0 commit comments

Comments
 (0)