Skip to content

Commit 9a46130

Browse files
committed
remove tildes
1 parent df34517 commit 9a46130

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mypyc/test-data/run-classes.test

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,9 @@ from native import X
477477
X('hello', a=0)
478478
try:
479479
X('hello', msg='hello')
480-
except TypeError:
481-
traceback.print_exc()
480+
except TypeError as e:
481+
print(f"{type(e).__name__}: {e}")
482482
[out]
483-
Traceback (most recent call last):
484-
File "driver.py", line 5, in <module>
485-
X('hello', msg='hello')
486-
~^^^^^^^^^^^^^^^^^^^^^^
487483
TypeError: argument for __init__() given by name ('msg') and position (1)
488484

489485
[case testGenericClass]

0 commit comments

Comments
 (0)