]> granicus.if.org Git - python/commit
bpo-30108: Restore sys.path in test_site (#1197) (#1378)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 2 May 2017 09:45:42 +0000 (11:45 +0200)
committerGitHub <noreply@github.com>
Tue, 2 May 2017 09:45:42 +0000 (11:45 +0200)
commit33a5d40de997fff5b60157c546a3bf711e083bcc
tree89ec522bce3688c3428fe8a67b5daf85a4406733
parent809101f14f27ddb394cd77c477470761ecf99f41
bpo-30108: Restore sys.path in test_site (#1197) (#1378)

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