Skip to content

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