Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
f866311d
Commit
f866311d
authored
May 15, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add platform-specific code to override the home directory to honor bpo-36264. Fixes #2112.
parent
2187d0c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
setuptools/tests/test_packageindex.py
setuptools/tests/test_packageindex.py
+8
-1
No files found.
setuptools/tests/test_packageindex.py
View file @
f866311d
...
...
@@ -3,6 +3,7 @@ from __future__ import absolute_import
import
sys
import
os
import
distutils.errors
import
platform
from
setuptools.extern
import
six
from
setuptools.extern.six.moves
import
urllib
,
http_client
...
...
@@ -285,7 +286,13 @@ class TestContentCheckers:
@
pytest
.
fixture
def
temp_home
(
tmpdir
,
monkeypatch
):
monkeypatch
.
setitem
(
os
.
environ
,
'HOME'
,
str
(
tmpdir
))
key
=
(
'USERPROFILE'
if
platform
.
system
()
==
'Windows'
and
sys
.
version_info
>
(
3
,
8
)
else
'HOME'
)
monkeypatch
.
setitem
(
os
.
environ
,
key
,
str
(
tmpdir
))
return
tmpdir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment