Skip to content

Commit 2899103

Browse files
committed
Fixup tests
1 parent 4c50ef3 commit 2899103

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

Lib/test/test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ async def afunc():
943943

944944
self.assertEqual(
945945
get_line_branches(afunc),
946-
[(1,2,3)])
946+
[(1,1,3)])
947947

948948
if check_impl_detail(cpython=True) and ctypes is not None:
949949
py = ctypes.pythonapi

Lib/test/test_dis.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,17 @@ def test__try_compile_no_context_exc_on_error(self):
12561256
except Exception as e:
12571257
self.assertIsNone(e.__context__)
12581258

1259+
def test_async_for(self):
1260+
1261+
async def afunc():
1262+
async for letter in async_iter1:
1263+
l2
1264+
l3
1265+
1266+
expected = ""
1267+
self.do_disassembly_test(afunc, expected)
1268+
1269+
12591270
@staticmethod
12601271
def code_quicken(f):
12611272
_testinternalcapi = import_helper.import_module("_testinternalcapi")

Programs/test_frozenmain.h

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)