[Bug 2145141] Re: ftbfs because of ansi color escape characters
Launchpad Bug Tracker
2145141 at bugs.launchpad.net
Thu Apr 9 13:12:49 UTC 2026
This bug was fixed in the package cmd2 - 3.2.0+ds-1ubuntu1
---------------
cmd2 (3.2.0+ds-1ubuntu1) resolute; urgency=medium
* d/rules: Skip ANSI styling tests that require a TTY. The rich
library disables styling without a terminal (LP: #2145141).
-- Guillaume Boutry <guillaume.boutry at canonical.com> Sun, 22 Mar 2026
15:42:09 +0100
** Changed in: cmd2 (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to cmd2 in Ubuntu.
https://bugs.launchpad.net/bugs/2145141
Title:
ftbfs because of ansi color escape characters
Status in cmd2 package in Ubuntu:
Fix Released
Bug description:
https://launchpad.net/ubuntu/+source/cmd2/3.2.0+ds-1/+build/32546857
> assert alert_str == expected
E AssertionError: assert '\x1b[2K\rHello World!' == '\x1b[2K\r\x1...World!\x1b[0m'
E
E [2K
E - [35mHello World![0m
E + Hello World!
Local build and debian build seem to pass thanks to PTY being available
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmd2/+bug/2145141/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list