Skip to content

Commit 4d23c3d

Browse files
committed
native exception group
1 parent bb4e30a commit 4d23c3d

File tree

7 files changed

+486
-52
lines changed

7 files changed

+486
-52
lines changed

Lib/test/test_exception_group.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ def test_exception_is_not_generic_type(self):
1515
with self.assertRaisesRegex(TypeError, 'Exception'):
1616
Exception[OSError]
1717

18-
# TODO: RUSTPYTHON
19-
@unittest.expectedFailure
2018
def test_exception_group_is_generic_type(self):
2119
E = OSError
2220
self.assertIsInstance(ExceptionGroup[E], types.GenericAlias)
@@ -810,8 +808,6 @@ def test_split_copies_notes(self):
810808
self.assertEqual(match.__notes__, orig_notes + ["match"])
811809
self.assertEqual(rest.__notes__, orig_notes + ["rest"])
812810

813-
# TODO: RUSTPYTHON
814-
@unittest.expectedFailure
815811
def test_split_does_not_copy_non_sequence_notes(self):
816812
# __notes__ should be a sequence, which is shallow copied.
817813
# If it is not a sequence, the split parts don't get any notes.
@@ -821,8 +817,6 @@ def test_split_does_not_copy_non_sequence_notes(self):
821817
self.assertFalse(hasattr(match, '__notes__'))
822818
self.assertFalse(hasattr(rest, '__notes__'))
823819

824-
# TODO: RUSTPYTHON
825-
@unittest.expectedFailure
826820
def test_drive_invalid_return_value(self):
827821
class MyEg(ExceptionGroup):
828822
def derive(self, excs):

Lib/test/test_socket.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5360,8 +5360,6 @@ def test_create_connection(self):
53605360
expected_errnos = socket_helper.get_socket_conn_refused_errs()
53615361
self.assertIn(cm.exception.errno, expected_errnos)
53625362

5363-
# TODO: RUSTPYTHON
5364-
@unittest.expectedFailure
53655363
def test_create_connection_all_errors(self):
53665364
port = socket_helper.find_unused_port()
53675365
try:

0 commit comments

Comments
 (0)