@@ -1290,6 +1290,7 @@ def test__try_compile_no_context_exc_on_error(self):
12901290 except Exception as e :
12911291 self .assertIsNone (e .__context__ )
12921292
1293+ @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: No END_ASYNC_FOR in disassembly of async for
12931294 def test_async_for_presentation (self ):
12941295
12951296 async def afunc ():
@@ -1474,6 +1475,10 @@ def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs):
14741475 dis .disassemble (func , lasti , file = output , ** kwargs )
14751476 return output .getvalue ()
14761477
1478+ @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: No END_ASYNC_FOR in disassembly of async for
1479+ def test_async_for_presentation (self ):
1480+ return super ().test_async_for_presentation ()
1481+
14771482
14781483if dis .code_info .__doc__ is None :
14791484 code_info_consts = "0: None"
@@ -2385,28 +2390,24 @@ def test_bytecode_co_positions(self):
23852390 assert instr .positions == positions
23862391
23872392class TestBytecodeTestCase (BytecodeTestCase ):
2388- @unittest .expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
23892393 def test_assert_not_in_with_op_not_in_bytecode (self ):
23902394 code = compile ("a = 1" , "<string>" , "exec" )
23912395 self .assertInBytecode (code , "LOAD_SMALL_INT" , 1 )
23922396 self .assertNotInBytecode (code , "LOAD_NAME" )
23932397 self .assertNotInBytecode (code , "LOAD_NAME" , "a" )
23942398
2395- @unittest .expectedFailure # TODO: RUSTPYTHON; RETURN_VALUE
23962399 def test_assert_not_in_with_arg_not_in_bytecode (self ):
23972400 code = compile ("a = 1" , "<string>" , "exec" )
23982401 self .assertInBytecode (code , "LOAD_SMALL_INT" )
23992402 self .assertInBytecode (code , "LOAD_SMALL_INT" , 1 )
24002403 self .assertNotInBytecode (code , "LOAD_CONST" , 2 )
24012404
2402- @unittest .expectedFailure # TODO: RUSTPYTHON; AssertionError: AssertionError not raised
24032405 def test_assert_not_in_with_arg_in_bytecode (self ):
24042406 code = compile ("a = 1" , "<string>" , "exec" )
24052407 with self .assertRaises (AssertionError ):
24062408 self .assertNotInBytecode (code , "LOAD_SMALL_INT" , 1 )
24072409
24082410class TestFinderMethods (unittest .TestCase ):
2409- @unittest .expectedFailure # TODO: RUSTPYTHON
24102411 def test__find_imports (self ):
24112412 cases = [
24122413 ("import a.b.c" , ('a.b.c' , 0 , None )),
@@ -2611,7 +2612,6 @@ def test_show_cache(self):
26112612 for flag in ['-C' , '--show-caches' ]:
26122613 self .check_output (source , expect , flag )
26132614
2614- @unittest .expectedFailure # TODO: RUSTPYTHON
26152615 def test_show_offsets (self ):
26162616 # test 'python -m dis -O/--show-offsets'
26172617 source = 'pass'
0 commit comments