Skip to content

Commit ff04323

Browse files
committed
Ignore 'OverlowError' like 'MemoryError' in sequence multiplication.
1 parent 66fdb61 commit ff04323

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python.tck/src/com/oracle/graal/python/tck/PythonProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ protected static boolean isMapping(Value par0) {
388388
private static boolean hasMemoryError(SnippetRun snippetRun) {
389389
PolyglotException exception = snippetRun.getException();
390390
if (exception != null && exception.isGuestException()) {
391-
return "MemoryError".equals(exception.getMessage());
391+
return "MemoryError".equals(exception.getMessage()) || exception.getMessage().contains("OverflowError");
392392
}
393393
return false;
394394
}

0 commit comments

Comments
 (0)