Skip to content

Commit d184016

Browse files
committed
Fix tests using invalid syntax
1 parent e073eeb commit d184016

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/BasicTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ public void not01() throws Exception {
554554

555555
@Test
556556
public void nonlocal02() throws Exception {
557-
checkTreeResult("nonlocal x");
557+
checkSyntaxError("nonlocal x");
558558
}
559559

560560
@Test

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/SSTSerializationTests.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -768,11 +768,6 @@ public void moduleDocTest() throws Exception {
768768
"\"\"\"MODULE A DOC\"\"\"\n" + "print(\"module A\")");
769769
}
770770

771-
@Test
772-
public void nonlocalTest() throws Exception {
773-
checkSerialization("nonlocal x");
774-
}
775-
776771
@Test
777772
public void numberBinTest() throws Exception {
778773
checkSerialization("0b101");
@@ -1084,7 +1079,7 @@ public void withTest() throws Exception {
10841079
}
10851080

10861081
@Test
1087-
public void yeildTest() throws Exception {
1082+
public void yieldTest() throws Exception {
10881083
checkSerialization("def f(): yield 1");
10891084
checkSerialization("def f(): yield");
10901085
checkSerialization("def f(): x += yield");

graalpython/com.oracle.graal.python.test/testData/goldenFiles/BasicTests/nonlocal02.tast

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)