From a3e5ebd48107127b8f7c2ffbf2cd82854bbe6fa8 Mon Sep 17 00:00:00 2001 From: TheHellTower <119943599+TheHellTower@users.noreply.github.com> Date: Thu, 19 Jan 2023 19:51:08 +0100 Subject: [PATCH] Add GET_YIELD_FROM_ITER support (#312) --- ASTree.cpp | 3 +++ tests/{xfail => compiled}/yield_from.3.5.pyc | Bin tests/{xfail => compiled}/yield_from.3.7.pyc | Bin tests/compiled/yield_from.3.9.pyc | Bin 0 -> 501 bytes 4 files changed, 3 insertions(+) rename tests/{xfail => compiled}/yield_from.3.5.pyc (100%) rename tests/{xfail => compiled}/yield_from.3.7.pyc (100%) create mode 100644 tests/compiled/yield_from.3.9.pyc diff --git a/ASTree.cpp b/ASTree.cpp index 4e327ff..6170ad1 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -1025,6 +1025,9 @@ PycRef BuildFromCode(PycRef code, PycModule* mod) case Pyc::GET_ITER: /* We just entirely ignore this */ break; + case Pyc::GET_YIELD_FROM_ITER: + /* We just entirely ignore this */ + break; case Pyc::IMPORT_NAME_A: if (mod->majorVer() == 1) { stack.push(new ASTImport(new ASTName(code->getName(operand)), NULL)); diff --git a/tests/xfail/yield_from.3.5.pyc b/tests/compiled/yield_from.3.5.pyc similarity index 100% rename from tests/xfail/yield_from.3.5.pyc rename to tests/compiled/yield_from.3.5.pyc diff --git a/tests/xfail/yield_from.3.7.pyc b/tests/compiled/yield_from.3.7.pyc similarity index 100% rename from tests/xfail/yield_from.3.7.pyc rename to tests/compiled/yield_from.3.7.pyc diff --git a/tests/compiled/yield_from.3.9.pyc b/tests/compiled/yield_from.3.9.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f983dc9c1c78dad419d12754ad0c2c0dd80903fd GIT binary patch literal 501 zcmZvYJx;?=49D%4q)h{1VnB!sWI=@)AqJ3`vLG=aAr#f2s?;{{5{61Jg_VQ!23&zF zbY<$u%EaG~s!0Wwp1<_$pY1G;BZ7RreGJ}VKQ(BJL2!mw9zY2RztRnf5f7HdmjKpC z=Zcc<06*5k@U&Kwnv?Ay`5n(j z`B?7mZ814~m@R@~K0WGd@6v}N-ew!Z{y}@IWVsJV(PC<|0goKqORaWW?m}6e*J@wK z{#9Ls4tv}W;I6PcY<1=hEaGNky;emvUEpSy*tO!ucVJEv<3@LlT0mXfI%*Hg<~FMe g+e5BdcneXQc&%#9{M#ZtnH2Ig&QI4T3;odl0fRe8lmGw# literal 0 HcmV?d00001