Thanks to visit codestin.com
Credit goes to GitHub.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Lib/test/test_except_star.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def test_break_in_except_star(self):
if i == 2:
break
finally:
return 0
pass
return 0
""")


Expand Down Expand Up @@ -117,7 +118,8 @@ def test_continue_in_except_star_block_invalid(self):
if i == 2:
continue
finally:
return 0
pass
return 0
""")

def test_return_in_except_star_block_invalid(self):
Expand Down Expand Up @@ -889,8 +891,7 @@ def test_raise_handle_all_raise_two_unnamed(self):


class TestExceptStarExceptionGroupSubclass(ExceptStarTest):
# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_except_star_EG_subclass(self):
class EG(ExceptionGroup):
def __new__(cls, message, excs, code):
Expand Down Expand Up @@ -1217,4 +1218,4 @@ def test_reraise_unhashable_eg(self):


if __name__ == '__main__':
unittest.main()
unittest.main()
6 changes: 2 additions & 4 deletions Lib/test/test_exception_hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ def test_errno_translation(self):
self.assertEqual(e.strerror, "File already exists")
self.assertEqual(e.filename, "foo.txt")

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_blockingioerror(self):
args = ("a", "b", "c", "d", "e")
for n in range(6):
Expand Down Expand Up @@ -182,8 +181,7 @@ def test_init_kwdargs(self):
self.assertEqual(e.bar, "baz")
self.assertEqual(e.args, ("some message",))

# TODO: RUSTPYTHON
@unittest.expectedFailure
@unittest.expectedFailure # TODO: RUSTPYTHON
def test_new_overridden(self):
e = SubOSErrorWithNew("some message", "baz")
self.assertEqual(e.baz, "baz")
Expand Down
4 changes: 1 addition & 3 deletions Lib/test/test_exception_variations.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,6 @@ def test_nested_exception_in_finally_with_exception(self):
self.assertTrue(hit_except)


# TODO: RUSTPYTHON
'''
class ExceptStarTestCases(unittest.TestCase):
def test_try_except_else_finally(self):
hit_except = False
Expand Down Expand Up @@ -571,7 +569,7 @@ def test_nested_else_mixed2(self):
self.assertFalse(hit_else)
self.assertTrue(hit_finally)
self.assertTrue(hit_except)
'''


if __name__ == '__main__':
unittest.main()
Loading
Loading