Closed clint-lawrence closed 6 years ago
@clint-lawrence I fixed it so it does work on forks. The bug is still there but I don't publish the wheel.
Failing test_basichierachy[None-test_test-None-10] on python 3.7 only At index 8 diff: ['Test 1.1', 'exception', "AssertionError('Exception in the test test',)"] != ['Test 1.1', 'exception', "AssertionError('Exception in the test test')"]
https://docs.python.org/3/whatsnew/3.7.html
repr for BaseException has changed to not include the trailing comma. Most exceptions are affected by this change. (Contributed by Serhiy Storchaka in bpo-30399.)
Fixed that. Can you review if that's the way you want the issue resolved?
After that, happy to merge
It exposes the fragility of these tests a little. Although there shouldn't be too many places where we're at the mercy of external behaviour in the log, so hopefully similar things to bite us much.
Given that the repr isn't that useful a better solution long term might be to not use the repr, just define the message we want to log and the create a separate error log which a full traceback. But other than those random thoughts, your fix is fine.
@pazzarpj, I just remembered the CI doesn't run of forked repos. Should I push the same branch to the main repo?