-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fix tests fragile to PATH #21453
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
Fix tests fragile to PATH #21453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. Only downside I can think of with this is when sys.executable
returns an empty string, though I couldn't find definitive documentation on when that happens (embedded applications?) so maybe not an issue
Codecov Report
@@ Coverage Diff @@
## master #21453 +/- ##
==========================================
- Coverage 91.89% 91.89% -0.01%
==========================================
Files 153 153
Lines 49600 49600
==========================================
- Hits 45580 45578 -2
- Misses 4020 4022 +2
Continue to review full report at Codecov.
|
thanks @WillAyd |
(cherry picked from commit 7a49449)
(cherry picked from commit 7a49449)
Closes #21450
Get path of current python interpreter running opposed to one on users path.