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

Unload all modules loaded during the test #503

Merged
merged 2 commits into from
Nov 17, 2019

Conversation

mrbean-bremen
Copy link
Member

- these module can still hold references to fake modules
- modules already loaded at test start are not affected
- see pytest-dev#501 and pytest-dev#427
@mrbean-bremen
Copy link
Member Author

@jmcgeheeiv - please have a look. This shall fix the mentioned problems, but I would like to have a second opinion on probable problems/side effects this could cause.

@jmcgeheeiv
Copy link
Contributor

Well, now I've done it. I changed a comment and now it fails a test. Comments?

@mrbean-bremen
Copy link
Member Author

Well, now I've done it. I changed a comment and now it fails a test. Comments?

You made an error in your correction: Dereference all force all modules, so the spell checker found that 😛
It may also have to do with the PEP8 finding that a line is too long...

I recently (while handling #500) activated the flake8 test (put here by a contributor) so that is fails the build if it has warnings. This is a bit over the top, and I can deactivate it again - it was more of an experiment anyway.

@mrbean-bremen
Copy link
Member Author

Thanks!

@mrbean-bremen mrbean-bremen merged commit 8c005b9 into pytest-dev:master Nov 17, 2019
@mrbean-bremen mrbean-bremen deleted the unload-modules branch November 19, 2019 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants