Skip to content

Commit db463c0

Browse files
committed
Fixing wrong test. List.extend returns NoneType, not the extended list.
1 parent c49d287 commit db463c0

File tree

1 file changed

+2
-1
lines changed
  • graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/datatype

1 file changed

+2
-1
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/datatype/ListTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ public void append() {
9494
@Test
9595
public void extend() {
9696
String source = "llist = [1,2]\n" + //
97-
"print(llist.extend([3, 4]))\n";
97+
"llist.extend([3, 4])\n" +
98+
"print(llist)\n";
9899

99100
assertPrints("[1, 2, 3, 4]\n", source);
100101
}

0 commit comments

Comments
 (0)