[Python-checkins] [python/cpython] 092f46: bpo-30108: Restore sys.path in test_site (#1197) (...

GitHub noreply at github.com
Tue May 2 05:45:46 EDT 2017


  Branch: refs/heads/3.5
  Home:   https://github.com/python/cpython
  Commit: 092f4602c329e23b863692249cc630a3eba5b6b5
      https://github.com/python/cpython/commit/092f4602c329e23b863692249cc630a3eba5b6b5
  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) (#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)




More information about the Python-checkins mailing list