pytester: testdir: set $HOME to tmpdir#4941
Conversation
Codecov Report
@@ Coverage Diff @@
## features #4941 +/- ##
============================================
+ Coverage 95.84% 95.85% +0.01%
============================================
Files 113 113
Lines 25266 25266
Branches 2495 2495
============================================
+ Hits 24216 24219 +3
+ Misses 735 734 -1
+ Partials 315 313 -2
Continue to review full report at Codecov.
|
|
Pushed an update for @asottile (via https://bugs.python.org/issue36264) ;) |
yep |
nicoddemus
left a comment
There was a problem hiding this comment.
LGTM, missing only a CHANGELOG entry. 👍
Might be worth having a helper in monkeypatch for this, handling any future changes in this regard maybe.. what do you think? |
mayyyybe, seems pretty niche though should this code do: if sys.platform == 'nt':
...
else:
... |
This avoids loading user configuration, which might interfere with test results, e.g. a `~/.pdbrc.py` with pdb++. Also sets USERPROFILE, which will be required with Python 3.8 [1]. 1: https://bugs.python.org/issue36264
|
Yeah - basically it would help with what Python expects to see I guess; which also means that it should set |
shrugs, I don't think we should add it (increase our maintenance surface area) until someone asks for it |
This avoids loading user configuration, which might interfere with test
results, e.g. a
~/.pdbrc.pywith pdb++.TODO: