-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.fdopen doesn't raise on invalid file descriptors #49241
Comments
Since os.fdopen is now implemented with io.open, it doesn't use fdopen |
Perhaps io.open should be fixed, then? |
Here's a patch for _FileIO. |
I think EBADF is defined everywhere, so you can drop the defined() |
Attaching new patch... |
I'm not sure Windows has a valid fstat btw, I'll guess we'll see on the |
Applied in r68755. Will watch Windows. |
Well, the Windows bot is failing but not from test_fileio, so I'll go |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: