Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set closefd=false for stdio file objects in VM init
- Prevent closing underlying fd when stdio wrappers are dropped
- Remove expectedFailure from test_fdopen in test_os.py
  • Loading branch information
youknowone committed Feb 1, 2026
commit 1132f6632588581e9690ae44c877b2bc79941f3d
1 change: 0 additions & 1 deletion Lib/test/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -2350,7 +2350,6 @@ def check_bool(self, f, *args, **kwargs):
with self.assertRaises(RuntimeWarning):
f(fd, *args, **kwargs)

@unittest.expectedFailure # TODO: RUSTPYTHON
def test_fdopen(self):
self.check(os.fdopen, encoding="utf-8")
self.check_bool(os.fdopen, encoding="utf-8")
Expand Down
1 change: 1 addition & 0 deletions crates/vm/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ impl VirtualMachine {
Some(if write { "wb" } else { "rb" }),
crate::stdlib::io::OpenArgs {
buffering: if unbuffered { 0 } else { -1 },
closefd: false,
..Default::default()
},
self,
Expand Down
Loading