https://github.com/python/cpython/commit/f7c39d2316e59f17148d93f9ec2d6c4d2b610029
commit: f7c39d2316e59f17148d93f9ec2d6c4d2b610029
branch: main
author: Brett Cannon <[email protected]>
committer: brettcannon <[email protected]>
date: 2026-10-28T22:51:07Z
summary:
Expose `/dev` to the WASI guest for testing purposes (GH-160856)
Discovered by running the test suite from a release build which can map all of
`/` into the WASI guest (unlike when running the test suite in a source
checkout).
files:
M Platforms/WASI/__main__.py
diff --git a/Platforms/WASI/__main__.py b/Platforms/WASI/__main__.py
index ee9e0f6de36438..0d504d43283297 100644
--- a/Platforms/WASI/__main__.py
+++ b/Platforms/WASI/__main__.py
@@ -23,6 +23,8 @@ def main():
"--argv0 {ARGV0} "
# Map the checkout to / to load the stdlib from /Lib.
"--dir {CHECKOUT}::/ "
+ # For various I/O-related tests.
+ "--dir /dev "
# Flags involving --optimize, --codegen, --debug, --wasm, and --wasi
can be kept
# in a config file.
# We are using such a file to act as defaults in case a user wants to
override
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]