Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.7] bpo-34185: Fix test module collision in test_bdb when ran as script. (GH-8537) #10935

Merged
merged 1 commit into from Dec 5, 2018

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Dec 5, 2018

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 54fd455)

Co-authored-by: Alex H 1884912+lajarre@users.noreply.github.com

https://bugs.python.org/issue34185

…ythonGH-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 54fd455)

Co-authored-by: Alex H <1884912+lajarre@users.noreply.github.com>
@miss-islington
Copy link
Contributor Author

@lajarre and @serhiy-storchaka: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit c7c4e93 into python:3.7 Dec 5, 2018
@miss-islington miss-islington deleted the backport-54fd455-3.7 branch December 5, 2018 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants