summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_netrc.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-03-12 15:39:57 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2019-03-12 15:39:57 (GMT)
commit25ec4a45dcc36c8087f93bd1634b311613244fc6 (patch)
tree1e5e08a4ee2c9f1625ad980528285cd7b3d4d5fd /Lib/test/test_netrc.py
parent410aea1ebf2f56364369be3b477763ce78577c07 (diff)
downloadcpython-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.py1
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