]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-31676: Fix test_imp.test_load_source() side effect (#3871)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 13 Oct 2017 20:47:49 +0000 (13:47 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Oct 2017 20:47:49 +0000 (13:47 -0700)
commita505ecdc5013cd8f930aacc1ec4fb2afa62d3853
treea8b81bec7e3ece4d474b252d1479acf94ea53f12
parenta99121526a14e7710843aa5dd6ac82a779542dfb
bpo-31676: Fix test_imp.test_load_source() side effect (#3871)

test_load_source() now replaces the current __name__ module with a
temporary module to prevent side effects.
Lib/test/test_imp.py