Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
864124c7
Commit
864124c7
authored
Oct 23, 2013
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Plain Diff
Issue #19360: fix test_site when Python is installed into $HOME/.local
parents
5bb282d5
e0b2170f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Lib/test/test_site.py
Lib/test/test_site.py
+8
-2
No files found.
Lib/test/test_site.py
View file @
864124c7
...
...
@@ -179,14 +179,20 @@ class HelperFunctionsTests(unittest.TestCase):
rc
=
subprocess
.
call
([
sys
.
executable
,
'-s'
,
'-c'
,
'import sys; sys.exit(%r in sys.path)'
%
usersite
],
env
=
env
)
self
.
assertEqual
(
rc
,
0
)
if
usersite
==
site
.
getsitepackages
()[
0
]:
self
.
assertEqual
(
rc
,
1
)
else
:
self
.
assertEqual
(
rc
,
0
)
env
=
os
.
environ
.
copy
()
env
[
"PYTHONNOUSERSITE"
]
=
"1"
rc
=
subprocess
.
call
([
sys
.
executable
,
'-c'
,
'import sys; sys.exit(%r in sys.path)'
%
usersite
],
env
=
env
)
self
.
assertEqual
(
rc
,
0
)
if
usersite
==
site
.
getsitepackages
()[
0
]:
self
.
assertEqual
(
rc
,
1
)
else
:
self
.
assertEqual
(
rc
,
0
)
env
=
os
.
environ
.
copy
()
env
[
"PYTHONUSERBASE"
]
=
"/tmp"
...
...
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