]> 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 20:04:57 +0000 (12:04 -0800)
committerGitHub <noreply@github.com>
Wed, 5 Dec 2018 20:04:57 +0000 (12:04 -0800)
commitbacc272afc165df21c607aae4ff7bfa21ae1979d
treebfd782d82935f5b9536fe0bb84e94de50a4e85c8
parentc7976da5c262be818a06c344d43ac09b1083c80b
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