GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — bpo-24780: unittest assertEqual difference output foiled by newlines by nanjekyejoannah · Pull Request #11548 · python/cpython Conversation
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. line is a list here and this causes test failures due to TypeError. lines seems to be a better name since it makes me think it's a single line but it's actually a list of lines.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I think a better test would be to test the output diff like https://github.com/python/cpython/blob/e709c1be97a04156c628f534116a236b9581aa2f/Lib/unittest/test/test_case.py#L1122 and it should be testing the failure cases and asserting the Exception output string.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
222a928 to
df4bdc9
Compare
6467b25 to
819b341
Compare
|
@tirkarthi I made the necessary updates to this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @nanjekyejoannah, tests should be fixed as noted in https://github.com/python/cpython/pull/11548/files#r247392463 . The tests are about the strings being equal and are not related to the issue. The actual tests should be about the diff output for the tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
closed this. Someone can open another PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@nanjekyejoannah Why did you close the PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.