Skip to content

Commit 923305e

Browse files
committed
Fix more tests.
1 parent 17eea03 commit 923305e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Lib/test/test_coroutines.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ def test_badsyntax_1(self):
9090

9191
"""await something()""",
9292

93-
"""async def foo():
94-
yield from []
95-
""",
96-
9793
"""async def foo():
9894
await await fut
9995
""",

Lib/test/test_dis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,8 @@ def test_widths(self):
10351035
long_opcodes = set(['JUMP_BACKWARD_NO_INTERRUPT',
10361036
'LOAD_FAST_BORROW_LOAD_FAST_BORROW',
10371037
'INSTRUMENTED_CALL_FUNCTION_EX',
1038-
'ANNOTATIONS_PLACEHOLDER'])
1038+
'ANNOTATIONS_PLACEHOLDER',
1039+
'GET_ASYNC_YIELD_FROM_ITER'])
10391040
for op, opname in enumerate(dis.opname):
10401041
if opname in long_opcodes or opname.startswith("INSTRUMENTED"):
10411042
continue

0 commit comments

Comments
 (0)