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

PytestAssertRewriteWarning: Module already imported so cannot be rewritten #3

Closed
pllim opened this issue Oct 25, 2019 · 0 comments · Fixed by #4
Closed

PytestAssertRewriteWarning: Module already imported so cannot be rewritten #3

pllim opened this issue Oct 25, 2019 · 0 comments · Fixed by #4

Comments

@pllim
Copy link
Member

pllim commented Oct 25, 2019

This warning was seen in astropy (xref astropy/astropy#9214) but @bsipocz suggested that I open issue here:

/home/travis/miniconda/envs/test/lib/python3.7/site-packages/_pytest/config/__init__.py:833
  /home/travis/miniconda/envs/test/lib/python3.7/site-packages/_pytest/config/__init__.py:833:
PytestAssertRewriteWarning: Module already imported so cannot be rewritten:
pytest_astropy_header
    self._mark_plugins_for_rewrite(hook)

@jdavies-st attempted to address it at astropy/astropy#9437 but it was not merged.

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 a pull request may close this issue.

1 participant