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
please don't suppress tracebacks on ImportError during test collection #1976
This chunk of code in _pytest/python.py (from pytest-3.0.3):
ignores the traceback. Please print at least the line and file number of the original failing import.
(I was just refactoring my code, and moved some code around in a way that I knew would cause import errors. But I don't know everywhere this code is imported from, without searching my whole code base or letting my test suite tell me. And if my test suite won't tell me more than "it's broken", then I'm back to searching the code base.)
Note that the error message doesn't even mention