]> granicus.if.org Git - python/commit
bpo-30108: Restore sys.path in test_site (#1197)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 20 Apr 2017 11:39:39 +0000 (13:39 +0200)
committerGitHub <noreply@github.com>
Thu, 20 Apr 2017 11:39:39 +0000 (13:39 +0200)
commitb85c136903c6d2368162f7c4a58f258c9c69ead0
tree0d4fd0b8b00d9f2dc4e240f01238c8dacccb0bff
parentb4dc6af7a7862a8996cffed30d39d6add5ee58a3
bpo-30108: Restore sys.path in test_site (#1197)

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