]> granicus.if.org Git - python/commit
bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 18 Oct 2017 01:47:10 +0000 (18:47 -0700)
committerMariatta <Mariatta@users.noreply.github.com>
Wed, 18 Oct 2017 01:47:10 +0000 (18:47 -0700)
commit178148025494c4058571831fb11fc8eeff8b7365
treefc1452fe6c01a1c5dd0cd6a906585bb9b2fae000
parent98e0f26f2e4cbf5c2ca27b39f43c1cb0114c6e3c
bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)

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