]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Dec 2018 20:20:03 +0000 (12:20 -0800)
committerSerhiy Storchaka <storchaka@gmail.com>
Wed, 5 Dec 2018 20:20:03 +0000 (22:20 +0200)
commit49d995fd6f2a703d19d93baf06fc9f911cb2ce06
tree5154406779f158e58b75b07f0cacd1a25f86ea71
parent9b3d6a1f9772e810afaa0dca106bd0e4d5f4be9f
bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) (GH-10936)

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