Error loading entry points are silently swallowed #1307
Labels
status: critical
grave problem or usability issue that affects lots of users
type: backward compatibility
might present some backward compatibility issues which should be carefully noted in the changelog
type: bug
problem that needs to be addressed
I just had my tests fail due to an unrecognised pytest parameter. This had me puzzled for quite some time: the parameter was defined by fixtures in another package and should work fine. Looking at
py.test -fixtures
output shows that there were a lot of missing fixtures. I eventually traced that down to an import error in one of my fixture entry points. As far as I can see the pytest behaviour for fixture discovery works like this:self.warn
statement, but that is not shown normally.This behaviour is not very friendly: fixture errors are silently ignored, and errors in one fixture will prevent other fixtures from being loaded.
The text was updated successfully, but these errors were encountered: