Skip to content

Commit 07ac7d7

Browse files
committed
Fix failing test
1 parent f8ac66b commit 07ac7d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/objects/PythonObjectLibraryTests.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
import com.oracle.graal.python.builtins.objects.object.PythonObjectLibrary;
5959
import com.oracle.graal.python.runtime.object.PythonObjectFactory;
6060
import com.oracle.graal.python.test.PythonTests;
61+
import com.oracle.truffle.api.interop.TruffleObject;
6162

6263
public class PythonObjectLibraryTests extends PythonTests {
6364

@@ -83,8 +84,8 @@ public void testLookupAttribute() {
8384
lookupAttr(() -> 1, "__str__", false);
8485
lookupAttr(() -> (long) 1, "__str__", false);
8586
lookupAttr(() -> "abc", "__str__", false);
86-
87-
lookupAttr(() -> new Object(), "__str__", true);
87+
lookupAttr(() -> new TruffleObject() {
88+
}, "__str__", false);
8889

8990
lookupAttr(() -> PythonObjectFactory.getUncached().createInt(1), "__str__", false);
9091

0 commit comments

Comments
 (0)