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
8ac95ee6
Commit
8ac95ee6
authored
Apr 04, 2012
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_site from modifying sysconfig._CONFIG_VARS.
parent
5ceef131
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_site.py
Lib/test/test_site.py
+4
-1
No files found.
Lib/test/test_site.py
View file @
8ac95ee6
...
...
@@ -39,6 +39,7 @@ class HelperFunctionsTests(unittest.TestCase):
self
.
old_base
=
site
.
USER_BASE
self
.
old_site
=
site
.
USER_SITE
self
.
old_prefixes
=
site
.
PREFIXES
self
.
original_vars
=
sysconfig
.
_CONFIG_VARS
self
.
old_vars
=
copy
(
sysconfig
.
_CONFIG_VARS
)
def
tearDown
(
self
):
...
...
@@ -47,7 +48,9 @@ class HelperFunctionsTests(unittest.TestCase):
site
.
USER_BASE
=
self
.
old_base
site
.
USER_SITE
=
self
.
old_site
site
.
PREFIXES
=
self
.
old_prefixes
sysconfig
.
_CONFIG_VARS
=
self
.
old_vars
sysconfig
.
_CONFIG_VARS
=
self
.
original_vars
sysconfig
.
_CONFIG_VARS
.
clear
()
sysconfig
.
_CONFIG_VARS
.
update
(
self
.
old_vars
)
def
test_makepath
(
self
):
# Test makepath() have an absolute path for its first return value
...
...
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