Skip to content

Fix #3539: reload module with assertion rewrite import hook #4022

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

Merged
merged 1 commit into from
Sep 23, 2018

Conversation

iwanb
Copy link
Contributor

@iwanb iwanb commented Sep 23, 2018

The current reload hook did not reload code of already imported modules.
See https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module

Fix #3539

@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 93.811% when pulling c61ff31 on iwanb:fix_reload into ec57cbf on pytest-dev:master.

Copy link
Member

@nicoddemus nicoddemus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Thanks!

@RonnyPfannschmidt RonnyPfannschmidt merged commit eca3e78 into pytest-dev:master Sep 23, 2018
@RonnyPfannschmidt
Copy link
Member

fabulous 👍

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.

4 participants