Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
AssertionRewritingHook object has no attribute find_spec #1888
Beginning with pytest 3.0.1, the tests in setuptools (example build) are failing with this error:
This issue was not revealed with pytest 3.0.0 due to the issue with collection.
For now, setuptools is pinning to pytest 2.x (see pypa/setuptools#765) to work around the issue.
I expect this issue may be triggered by the (admittedly hacky) sandboxing that setuptools does, so setuptools may have some culpability. I have not researched the error further, so I welcome advice on what might be triggering this error.
Here it is below. Fixed by using