You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mypyc/test-data/run-classes.test
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2781,3 +2781,22 @@ gc.collect()
2781
2781
[out]
2782
2782
deleting C1...
2783
2783
deleting C2...
2784
+
2785
+
[case testDelException]
2786
+
# The error message in the expected output of this test does not match CPython's error message due to the way mypyc compiles Python classes. If the error message is fixed, the expected output of this test will also change.
2787
+
class F:
2788
+
def __del__(self):
2789
+
if True:
2790
+
raise Exception("e2")
2791
+
2792
+
[file driver.py]
2793
+
import native
2794
+
f = native.F()
2795
+
del f
2796
+
2797
+
[out]
2798
+
Exception ignored in: <slot wrapper '__del__' of 'F' objects>
0 commit comments