Skip to content

Commit 9aaf75b

Browse files
committed
Fix parser tests that were failing because of scope name 'lambda' vs '<lambda>'
1 parent 2b4bf3d commit 9aaf75b

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

graalpython/com.oracle.graal.python.pegparser.test/src/com/oracle/graal/python/pegparser/test/LambdaInFunctionTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@
4141

4242
package com.oracle.graal.python.pegparser.test;
4343

44-
import org.junit.Ignore;
4544
import org.junit.Test;
4645

47-
@Ignore // GR-62729
4846
public class LambdaInFunctionTests extends ParserTestBase {
4947

5048
@Test

graalpython/com.oracle.graal.python.pegparser.test/src/com/oracle/graal/python/pegparser/test/YieldStatementTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141

4242
package com.oracle.graal.python.pegparser.test;
4343

44-
import org.junit.Ignore;
4544
import org.junit.Test;
4645

4746
public class YieldStatementTests extends ParserTestBase {
@@ -149,7 +148,6 @@ public void customIter01() throws Exception {
149148
}
150149

151150
@Test
152-
@Ignore // GR-62729
153151
public void yield17() throws Exception {
154152
checkScopeAndTree("generator = type((lambda: (yield))())");
155153
}

graalpython/com.oracle.graal.python.pegparser/src/com/oracle/graal/python/pegparser/scope/ScopeEnvironment.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ public Void visit(ExprTy.Lambda node) {
645645
visitSequence(node.args.defaults);
646646
visitSequence(node.args.kwDefaults);
647647
}
648-
enterBlock("<lambda>", ScopeType.Function, node);
648+
enterBlock("lambda", ScopeType.Function, node);
649649
try {
650650
if (node.args != null) {
651651
node.args.accept(this);

0 commit comments

Comments
 (0)