Skip to content

Commit 7ff38df

Browse files
msimacekilyass-elmazidi
authored andcommitted
Raise io.UnsupportedOperation from raiseOSErrorUnsupported
(cherry picked from commit 5e0b380)
1 parent f3e906f commit 7ff38df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PConstructAndRaiseNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public final PException raiseOSErrorFromPosixException(VirtualFrame frame, Posix
243243
}
244244

245245
public final PException raiseOSErrorUnsupported(VirtualFrame frame, UnsupportedPosixFeatureException e) {
246-
return raiseOSError(frame, OSErrorEnum.EINVAL, createUnsupportedErrorMessage(e));
246+
return executeWithArgsOnly(frame, PythonBuiltinClassType.IOUnsupportedOperation, new Object[]{createUnsupportedErrorMessage(e)});
247247
}
248248

249249
@TruffleBoundary

0 commit comments

Comments
 (0)