Skip to content

Commit 5e0b380

Browse files
committed
Raise io.UnsupportedOperation from raiseOSErrorUnsupported
1 parent 076d875 commit 5e0b380

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)