Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
INTERNALERROR when error raised in __repr__ with showlocals and verbose output #5089
The small test to reproduce
class Thing: def __repr__(self): raise NotImplementedError def test_the_thing(): t = Thing() assert t == 3 def test_something_works(): assert 1 == 1
When running tests with
But increasing verbosity (
Also, notice that in the last example no tests are completed. I'm using Ubuntu 18.04, python 3.6.7, and pytest 4.3.0.
Can you please clarify if this is expected behaviour or a bug?