@@ -45,19 +45,25 @@ def func2(*args, **kwargs):
45
45
('func2' , (), {}),
46
46
('func1' , (1 , 2 ), {})])
47
47
48
+ # TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
49
+ @unittest .expectedFailure
48
50
def test_badargs (self ):
49
51
def func ():
50
52
pass
51
53
52
54
# func() has no parameter, but it's called with 2 parameters
53
55
self .assert_raises_unraisable (TypeError , func , 1 ,2 )
54
56
57
+ # TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
58
+ @unittest .expectedFailure
55
59
def test_raise (self ):
56
60
def raise_type_error ():
57
61
raise TypeError
58
62
59
63
self .assert_raises_unraisable (TypeError , raise_type_error )
60
64
65
+ # TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
66
+ @unittest .expectedFailure
61
67
def test_raise_unnormalized (self ):
62
68
# bpo-10756: Make sure that an unnormalized exception is handled
63
69
# properly.
@@ -66,6 +72,8 @@ def div_zero():
66
72
67
73
self .assert_raises_unraisable (ZeroDivisionError , div_zero )
68
74
75
+ # TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
76
+ @unittest .expectedFailure
69
77
def test_exit (self ):
70
78
self .assert_raises_unraisable (SystemExit , sys .exit )
71
79
@@ -116,6 +124,8 @@ def test_bound_methods(self):
116
124
atexit ._run_exitfuncs ()
117
125
self .assertEqual (l , [5 ])
118
126
127
+ # TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
128
+ @unittest .expectedFailure
119
129
def test_atexit_with_unregistered_function (self ):
120
130
# See bpo-46025 for more info
121
131
def func ():
0 commit comments