diff options
author | Anthony Sottile <asottile@umich.edu> | 2019-03-12 15:39:57 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2019-03-12 15:39:57 (GMT) |
commit | 25ec4a45dcc36c8087f93bd1634b311613244fc6 (patch) | |
tree | 1e5e08a4ee2c9f1625ad980528285cd7b3d4d5fd /Lib/test/test_netrc.py | |
parent | 410aea1ebf2f56364369be3b477763ce78577c07 (diff) | |
download | cpython-25ec4a45dcc36c8087f93bd1634b311613244fc6.zip cpython-25ec4a45dcc36c8087f93bd1634b311613244fc6.tar.gz cpython-25ec4a45dcc36c8087f93bd1634b311613244fc6.tar.bz2 |
bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)
Diffstat (limited to 'Lib/test/test_netrc.py')
-rw-r--r-- | Lib/test/test_netrc.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_netrc.py b/Lib/test/test_netrc.py index ae53988..7ce7e56 100644 --- a/Lib/test/test_netrc.py +++ b/Lib/test/test_netrc.py @@ -154,6 +154,7 @@ class NetrcTestCase(unittest.TestCase): called.append(s) with support.EnvironmentVarGuard() as environ: environ.set('HOME', fake_home) + environ.set('USERPROFILE', fake_home) result = orig_expanduser(s) return result |