Skip to content

Commit 759fa63

Browse files
committed
Try fix os.open on windows ci
1 parent 9433126 commit 759fa63

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
test_argparse test_json test_bytes test_long test_pwd test_bool test_cgi test_complex
124124
test_exception_hierarchy test_glob test_iter test_list test_os test_pathlib
125125
test_py_compile test_set test_shutil test_sys test_unicode test_unittest test_venv
126-
test_zipimport test_importlib test_io
126+
test_zipimport test_importlib
127127
env:
128128
RUSTPYTHONPATH: ${{ github.workspace }}/Lib
129129
if: runner.os == 'Windows'

vm/src/stdlib/os.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ mod _os {
353353
}
354354
}
355355

356-
#[cfg(windows)]
357-
let flags = flags & !(libc::O_WRONLY as u32);
356+
// #[cfg(windows)]
357+
// let flags = flags & !(libc::O_WRONLY as u32);
358358

359-
#[cfg(not(target_os = "wasi"))]
359+
#[cfg(unix)]
360360
{
361361
use platform::OpenOptionsExt;
362362
options.custom_flags(flags);

0 commit comments

Comments
 (0)