]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-30108: Restore sys.path in test_site (#1197) (#1459)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 4 May 2017 16:21:52 +0000 (18:21 +0200)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 16:21:52 +0000 (18:21 +0200)
commit78064387e5815633168a80dcdc1bd9aec4eff46a
treee605c48c5b25c1d4b16e339f368f9f2e051716d8
parent9fb061ba9ca6021055ca5a9bac193aeb1211aba0
bpo-30108: Restore sys.path in test_site (#1197) (#1459)

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 b85c136903c6d2368162f7c4a58f258c9c69ead0)
Lib/test/test_site.py