Branch: refs/heads/2.7 Home: https://github.com/python/cpython Commit: 78064387e5815633168a80dcdc1bd9aec4eff46a https://github.com/python/cpython/commit/78064387e5815633168a80dcdc1bd9aec4eff46a Author: Victor Stinner <victor.stinner at gmail.com> Date: 2017年05月04日 (2017年5月04日) Changed paths: M Lib/test/test_site.py Log Message: ----------- 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)