Skip to content

Commit 29cf716

Browse files
committed
Mark unsupported tests
1 parent bdffe3b commit 29cf716

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Lib/test/test_raise.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def reraise():
5656
raise
5757
self.assertRaises(TypeError, reraise)
5858

59+
@unittest.skip("TODO: RUSTPYTHON")
5960
def test_finally_reraise(self):
6061
def reraise():
6162
try:
@@ -150,6 +151,8 @@ def test_assert_with_tuple_arg(self):
150151

151152
class TestCause(unittest.TestCase):
152153

154+
# TODO: RUSTPYTHON
155+
@unittest.expectedFailure
153156
def testCauseSyntax(self):
154157
try:
155158
try:
@@ -169,6 +172,8 @@ def testCauseSyntax(self):
169172
self.assertFalse(e.__suppress_context__)
170173
self.assertIsInstance(e.__context__, TypeError)
171174

175+
# TODO: RUSTPYTHON
176+
@unittest.expectedFailure
172177
def test_invalid_cause(self):
173178
try:
174179
raise IndexError from 5
@@ -209,6 +214,7 @@ def __init__(self):
209214

210215
class TestTraceback(unittest.TestCase):
211216

217+
@unittest.skip("TODO: RUSTPYTHON")
212218
def test_sets_traceback(self):
213219
try:
214220
raise IndexError()
@@ -233,6 +239,7 @@ class TestTracebackType(unittest.TestCase):
233239
def raiser(self):
234240
raise ValueError
235241

242+
@unittest.skip("TODO: RUSTPYTHON")
236243
def test_attrs(self):
237244
try:
238245
self.raiser()
@@ -268,6 +275,7 @@ def test_attrs(self):
268275
tb.tb_next = new_tb
269276
self.assertIs(tb.tb_next, new_tb)
270277

278+
@unittest.skip("TODO: RUSTPYTHON")
271279
def test_constructor(self):
272280
other_tb = get_tb()
273281
frame = sys._getframe()
@@ -344,6 +352,8 @@ def test_c_exception_context(self):
344352
else:
345353
self.fail("No exception raised")
346354

355+
# TODO: RUSTPYTHON
356+
@unittest.expectedFailure
347357
def test_c_exception_raise(self):
348358
try:
349359
try:
@@ -366,6 +376,8 @@ def test_noraise_finally(self):
366376
else:
367377
self.fail("No exception raised")
368378

379+
# TODO: RUSTPYTHON
380+
@unittest.expectedFailure
369381
def test_raise_finally(self):
370382
try:
371383
try:
@@ -377,6 +389,8 @@ def test_raise_finally(self):
377389
else:
378390
self.fail("No exception raised")
379391

392+
# TODO: RUSTPYTHON
393+
@unittest.expectedFailure
380394
def test_context_manager(self):
381395
class ContextManager:
382396
def __enter__(self):
@@ -391,6 +405,8 @@ def __exit__(self, t, v, tb):
391405
else:
392406
self.fail("No exception raised")
393407

408+
# TODO: RUSTPYTHON
409+
@unittest.expectedFailure
394410
def test_cycle_broken(self):
395411
# Self-cycles (when re-raising a caught exception) are broken
396412
try:

0 commit comments

Comments
 (0)