]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Dec 2018 19:54:42 +0000 (11:54 -0800)
committerGitHub <noreply@github.com>
Wed, 5 Dec 2018 19:54:42 +0000 (11:54 -0800)
commitc7c4e938b98068e8e4e5fe56d441db696d47de78
tree13debe9f77112ad8143eed2dc56b0af47b60a510
parente2f376f284b7bf1388d85e99dce646cabc507016
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537)

When running test_bdb.py as a script, `import test_module` would be
importing the existing Lib/test/test_modules.py instead of the
tempcwd/test_module.py module which was dynamically created by
test_bdb.py itself.
(cherry picked from commit 54fd45505b3a365e6d53441e6dd7e0d1ec13b46f)

Co-authored-by: Alex H <1884912+lajarre@users.noreply.github.com>
Lib/test/test_bdb.py