◐ Shell
clean mode source ↗

bpo-30108: Restore sys.path in test_site by vstinner · Pull Request #1197 · python/cpython

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 added the tests

Tests in the Lib/test dir

label

Apr 20, 2017

serhiy-storchaka

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)