Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-118234: Document Python subprocess requirement onSystemRoot
env, add RuntimeWarning#134435
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
jhohm wants to merge7 commits intopython:mainChoose a base branch fromjhohm:gh-118234-2
base:main
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
+25 −11
Open
Changes from1 commit
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
167aeba
Further document Python subprocess requirement on `SystemRoot` env, a…
jhohmb4dfc9c
doc: change will to may (so we don't need to communicate patch versio…
gpsheadb3285ea
add ! to SystemRoot envvar ref to not link (?)
gpshead80afcbc
Merge branch 'main' into gh-118234-2
jhohm0cbf8bc
Avoid warning if any capitalization of SystemRoot in env has a nonemp…
jhohm9c0ce13
Fix tests to avoid and/or tolerate RuntimeWarning for missing SystemR…
jhohm62e8465
Revert unneeded change to `test_launcher.RunPyEnv.fake_venv` context.
jhohmFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Fix tests to avoid and/or tolerate RuntimeWarning for missing SystemR…
…oot.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit9c0ce134eae3a2e78dfe7bd51a1aec09a66fde93
There are no files selected for viewing
5 changes: 4 additions & 1 deletionLib/test/test_launcher.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -287,7 +287,10 @@ def fake_venv(self): | ||
venv_exe = (venv / ("python_d.exe" if DEBUG_BUILD else "python.exe")) | ||
venv_exe.touch() | ||
try: | ||
yield venv_exe, { | ||
"SystemRoot": os.environ.get("SystemRoot"), | ||
"VIRTUAL_ENV": str(venv.parent), | ||
} | ||
jhohm marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
finally: | ||
shutil.rmtree(venv) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.