Skip to content

Commit b3be4c3

Browse files
committed
fix test and don't print None
1 parent 7a8efe6 commit b3be4c3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/interop/JavaInteropTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public void accessSuitePy() throws IOException {
238238
}
239239
}
240240
assertNotNull("Dacapo found", dacapo);
241-
assertEquals("'e39957904b7e79caf4fa54f30e8e4ee74d4e9e37'", dacapo.getMember("sha1").toString());
241+
assertEquals("e39957904b7e79caf4fa54f30e8e4ee74d4e9e37", dacapo.getMember("sha1").toString());
242242
}
243243

244244
public static class ForeignObjectWithOOInvoke implements TruffleObject {

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/control/TopLevelExceptionHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ public Object execute(VirtualFrame frame) {
134134

135135
@TruffleBoundary
136136
private void printResult(Object result) {
137+
if (result instanceof PNone) {
138+
return;
139+
}
137140
OutputStream out = getCurrentContext(PythonLanguage.class).getStandardOut();
138141
String stringResult = callReprNode.executeObject(result).toString();
139142
try {

0 commit comments

Comments
 (0)