[Python-checkins] [python/cpython] 33a5d4: bpo-30108: Restore sys.path in test_site (#1197) (...
GitHub
noreply at github.com
Tue May 2 05:45:44 EDT 2017
Branch: refs/heads/3.6
Home: https://github.com/python/cpython
Commit: 33a5d40de997fff5b60157c546a3bf711e083bcc
https://github.com/python/cpython/commit/33a5d40de997fff5b60157c546a3bf711e083bcc
Author: Victor Stinner <victor.stinner at gmail.com>
Date: 2017-05-02 (Tue, 02 May 2017)
Changed paths:
M Lib/test/test_site.py
Log Message:
-----------
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)
More information about the Python-checkins
mailing list