Skip to content
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

Migrate runtests.py from os.system to subprocess #10121

Merged
merged 3 commits into from Feb 21, 2021

Conversation

@freundTech
Copy link
Contributor

@freundTech freundTech commented Feb 20, 2021

Alternative PR to #10052. This version uses subprocess.

Also removes code, which was unreachable since mypy requires python 3.5.

Test Plan

The changed have been manually tested on linux and a windows VM with python installed to C:\Program Files\Python39 (So the path contains a space).

It was also tested that failure of individual tests still lead to the whole test script failing.

runtests.py Outdated Show resolved Hide resolved
runtests.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@hauntsaninja hauntsaninja left a comment

Thanks!

@hauntsaninja hauntsaninja merged commit 9cbf4c0 into python:master Feb 21, 2021
7 checks passed
@freundTech freundTech deleted the fix-runtests-subprocess branch Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants