Repository navigation
Replies: 1 comment 2 replies
|
I can reproduce this. It depends on the panel width more than the path itself: Rich wraps the error box at 80 columns and splits the path wherever it lands, so with some TMPDIR lengths "cannot-open.txt" ends up broken across two lines. Until your fix lands, a wider console makes it pass in the nix build env: Your commit looks like the right long-term fix since the test shouldn't depend on terminal width. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First Check
Example Code
Description
When running unit tests in nixpkgs build env, the test case may fail:
It happens because TMPDIR is
/build/pytest-of-nixbld/pytest-0/popen-gw31/test_file_error0and it pushes Rich library to wrap the file name. Assert then fails.Operating System
Linux
Operating System Details
No response
Project Version
0.27.2
Python Version
3.14
Additional Context
You can pull the fix here: 2c40f62
All reactions