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

GitHub noreply at github.com
Thu Apr 20 07:39:41 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/python/cpython
  Commit: b85c136903c6d2368162f7c4a58f258c9c69ead0
      https://github.com/python/cpython/commit/b85c136903c6d2368162f7c4a58f258c9c69ead0
  Author: Victor Stinner <victor.stinner at gmail.com>
  Date:   2017-04-20 (Thu, 20 Apr 2017)

  Changed paths:
    M Lib/test/test_site.py

  Log Message:
  -----------
  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.




More information about the Python-checkins mailing list