Replies: 2 comments 1 reply
-
This is most likely a genuine overlook as Small with terminal are more and more uncommon |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lanzz I haven't been able to reproduce; tried 24 columns and 190 columns. Can you share your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some of
pytest
's own unit tests (ones dealing with asserting expected output, it seems) are sensitive to the terminal width and will pass when the width is 80 but fail for wider terminals (looks like substrings it expects to see on separate lines end up on the same line due to the extra space). I see that some tests have explicit patches for theCOLUMNS
environment variable that seems to deal with a similar issue, but the ones I see failing do not even attempt to ensure a repeatable testing environment.Here are the affected tests I encountered:
I think this list might not be exhaustive, because sometimes the failure is caused by the expected string getting split between two lines, so it can still pass on some widths greater than 80, but not on others.
Not sure if this is considered a "bug" per se. Should I open a bug issue for it? I'm not even sure if it's a genuine issue, I looked for existing reports of this and didn't find any, so now I'm wondering if there's something off in the way I'm running the tests?
Beta Was this translation helpful? Give feedback.
All reactions