django-rich FTBFS when TERM=unknown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-rich (Debian) |
Fix Released
|
Unknown
|
|||
django-rich (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
django-rich FTBFS on Ubuntu because the build-time test suite fails:
___________________ RichCommandTest
self = <tests.
def test_output_
stdout = StringIO()
> assert stdout.getvalue() == "\x1b[1;
E AssertionError: assert 'Alert!\n' == '\x1b[1;
E - [1;31mAlert![0m
E + Alert!
This happens because the underlying python rich library disables color/style when the TERM variable is set to unknown (which is what the Ubuntu builders have):
> Setting the environment variable TERM to "dumb" or "unknown" will disable color/style and some features that require moving the cursor, such as progress bars.
https:/
Changed in django-rich (Ubuntu): | |
assignee: | nobody → Olivier Gayot (ogayot) |
status: | New → In Progress |
Changed in django-rich (Debian): | |
status: | Unknown → Fix Released |
Green build on PPA: https:/ /launchpad. net/~ogayot/ +archive/ ubuntu/ lunar-proposed/ +build/ 25542391