Skip to content
Prev Previous commit
Next Next commit
Fixup tests
  • Loading branch information
markshannon committed Mar 4, 2025
commit 28991037ce2b23581dab8b81a37011a133bb8f67
2 changes: 1 addition & 1 deletion Lib/test/test_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ async def afunc():

self.assertEqual(
get_line_branches(afunc),
[(1,2,3)])
[(1,1,3)])

if check_impl_detail(cpython=True) and ctypes is not None:
py = ctypes.pythonapi
Expand Down
11 changes: 11 additions & 0 deletions Lib/test/test_dis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,17 @@ def test__try_compile_no_context_exc_on_error(self):
except Exception as e:
self.assertIsNone(e.__context__)

def test_async_for(self):

async def afunc():
async for letter in async_iter1:
l2
l3

expected = ""
self.do_disassembly_test(afunc, expected)


@staticmethod
def code_quicken(f):
_testinternalcapi = import_helper.import_module("_testinternalcapi")
Expand Down
22 changes: 11 additions & 11 deletions Programs/test_frozenmain.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.