Skip to content

Commit da40151

Browse files
committed
Mark erroring tests
1 parent c2ae3ba commit da40151

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Lib/test/_test_atexit.py

+10
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,25 @@ def func2(*args, **kwargs):
4545
('func2', (), {}),
4646
('func1', (1, 2), {})])
4747

48+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
49+
@unittest.expectedFailure
4850
def test_badargs(self):
4951
def func():
5052
pass
5153

5254
# func() has no parameter, but it's called with 2 parameters
5355
self.assert_raises_unraisable(TypeError, func, 1 ,2)
5456

57+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
58+
@unittest.expectedFailure
5559
def test_raise(self):
5660
def raise_type_error():
5761
raise TypeError
5862

5963
self.assert_raises_unraisable(TypeError, raise_type_error)
6064

65+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
66+
@unittest.expectedFailure
6167
def test_raise_unnormalized(self):
6268
# bpo-10756: Make sure that an unnormalized exception is handled
6369
# properly.
@@ -66,6 +72,8 @@ def div_zero():
6672

6773
self.assert_raises_unraisable(ZeroDivisionError, div_zero)
6874

75+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
76+
@unittest.expectedFailure
6977
def test_exit(self):
7078
self.assert_raises_unraisable(SystemExit, sys.exit)
7179

@@ -116,6 +124,8 @@ def test_bound_methods(self):
116124
atexit._run_exitfuncs()
117125
self.assertEqual(l, [5])
118126

127+
# TODO: RUSTPYTHON, AttributeError: module 'sys' has no attribute 'unraisablehook'
128+
@unittest.expectedFailure
119129
def test_atexit_with_unregistered_function(self):
120130
# See bpo-46025 for more info
121131
def func():

0 commit comments

Comments
 (0)