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

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