mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Update test_except_star from v3.14.2
This commit is contained in:
committed by
Jeong, YunWon
parent
8265279411
commit
7cd55802f6
11
Lib/test/test_except_star.py
vendored
11
Lib/test/test_except_star.py
vendored
@@ -84,7 +84,8 @@ class TestBreakContinueReturnInExceptStarBlock(unittest.TestCase):
|
||||
if i == 2:
|
||||
break
|
||||
finally:
|
||||
return 0
|
||||
pass
|
||||
return 0
|
||||
""")
|
||||
|
||||
|
||||
@@ -117,7 +118,8 @@ class TestBreakContinueReturnInExceptStarBlock(unittest.TestCase):
|
||||
if i == 2:
|
||||
continue
|
||||
finally:
|
||||
return 0
|
||||
pass
|
||||
return 0
|
||||
""")
|
||||
|
||||
def test_return_in_except_star_block_invalid(self):
|
||||
@@ -889,8 +891,7 @@ class TestExceptStarRaiseFrom(ExceptStarTest):
|
||||
|
||||
|
||||
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):
|
||||
@@ -1217,4 +1218,4 @@ class TestExceptStar_WeirdExceptionGroupSubclass(ExceptStarTest):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user