Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-30108: Restore sys.path in test_site#1197

Merged
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:test_site_sys_pathCopy head branch name to clipboard
Apr 20, 2017
Merged

bpo-30108: Restore sys.path in test_site#1197
vstinner merged 1 commit into
python:masterpython/cpython:masterfrom
vstinner:test_site_sys_pathCopy head branch name to clipboard

Conversation

@vstinner

Copy link
Copy Markdown
Member

Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.

Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.
@vstinner vstinner added the tests Tests in the Lib/test dir label Apr 20, 2017
@mention-bot

Copy link
Copy Markdown

@Haypo, thanks for your PR! By analyzing the history of the files in this pull request, we identified @brettcannon, @benjaminp and @tiran to be potential reviewers.

@vstinner vstinner merged commit b85c136 into python:master Apr 20, 2017
@vstinner vstinner deleted the test_site_sys_path branch April 20, 2017 11:39
vstinner added a commit that referenced this pull request May 2, 2017
Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.
(cherry picked from commit b85c136)
vstinner added a commit that referenced this pull request May 2, 2017
Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.
(cherry picked from commit b85c136)
vstinner added a commit that referenced this pull request May 4, 2017
Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.
(cherry picked from commit b85c136)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.