Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
False-positive warning about assertion rewrite #2005
# contents of conftest.py pytest_plugins = 'plugin1' # contents of test_foo.py pytest_plugins = 'plugin1' def test(): pass # plugin1.py is an empty file
But this is a false positive; what happens is that the code which verifies that a module needs to be rewritten but is already imported doesn't remember that the file was already rewritten on import.