python-termcolor 3.3.0-1 any, from extra failed
failed 2026-09-10T16:00:04Z on worker1-1, attempt 3 of 3: gave up; 138M rss, 166M peak
- job
- 5-1789028949-hegjon-test,python-termcolor,3.3.0-1,any
- commit
- d4dfa4cb13e1ff4b12f4ae43e0875648fbd7ffc8
- log
- /var/lib/archci/logs/hegjon-test/python-termcolor/3.3.0-1/any/attempt-3.log
log 1868 lines · first error at 1820
1==> archci-build 5-1789028949-hegjon-test,python-termcolor,3.3.0-1,any on worker1 at 2026-09-10T15:59:41Z2 repo=hegjon-test arch=any profile=extra chroot=/var/lib/archbuild/extra-x86_64 copy=archci-1 commit=d4dfa4cb13e1ff4b12f4ae43e0875648fbd7ffc83 pacman.conf=/var/lib/archci-worker/chroot-conf/hegjon-test-extra-x86_64.conf makepkg.conf=/usr/share/devtools/makepkg.conf.d/x86_64.conf cache=/var/cache/archci/pkg/hegjon-test-x86_64/4==> Fetching pkgbuilds/python-termcolor at d4dfa4cb13e1ff4b12f4ae43e0875648fbd7ffc8 from https://github.com/hegjon/omarchy-pkgs.git5==> Building python-termcolor 3.3.0-1 in archci-16pam_unix(runuser:session): session opened for user archci(uid=968) by archci(uid=0)7==> Synchronizing chroot copy [/var/lib/archbuild/extra-x86_64/root] -> [archci-1]...done8 root : PWD=/var/lib/archci-worker/build/1/python-termcolor ; USER=archci ; ENV=GNUPGHOME=/var/lib/archci-worker/gnupg ; COMMAND=/usr/bin/env SRCDEST=/var/lib/archci-worker/srcdest BUILDDIR=/tmp/makechrootpkg.Lrx9layQE0 makepkg --config=/var/lib/archbuild/extra-x86_64/archci-1/etc/makepkg.conf --verifysource -o9pam_unix(sudo:session): session opened for user archci(uid=968) by (uid=0)10==> Making package: python-termcolor 3.3.0-1 (Thu Sep 10 15:59:45 2026)11==> Retrieving sources...12 -> Downloading termcolor-3.3.0.tar.gz...13 % Total % Received % Xferd Average Speed Time Time Time Current14 Dload Upload Total Spent Left Speed15 0 0 0 0 0 0 0 0 0 100 122 100 122 0 0 3689 0 0 100 122 100 122 0 0 3679 0 016 0 0 0 0 0 0 0 0 0 100 278 100 278 0 0 2274 0 0 100 278 100 278 0 0 2273 0 017 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 018 0 0 0 0 0 0 0 0 0 100 14434 100 14434 0 0 96233 0 0 100 14434 100 14434 0 0 96176 0 0 100 14434 100 14434 0 0 96119 0 019==> Validating source files with sha256sums...20 termcolor-3.3.0.tar.gz ... Passed21pam_unix(sudo:session): session closed for user archci22 root : PWD=/var/lib/archci-worker/build/1/python-termcolor ; USER=archci ; COMMAND=/usr/bin/bash -c '#012#011#011source PKGBUILD#012#011#011printf "%s\\n" "${pkgbase:-${pkgname}}" "${pkgname[@]}"#012'23pam_unix(sudo:session): session opened for user archci(uid=968) by (uid=0)24pam_unix(sudo:session): session closed for user archci25Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file.26==> Making package: python-termcolor 3.3.0-1 (Thu Sep 10 15:59:52 2026)27==> Checking runtime dependencies...28==> Checking buildtime dependencies...29==> Installing missing dependencies...30resolving dependencies...31looking for conflicting packages...32Package (25) New Version Net Change Download Size33hegjon-test/python-autocommand 2.2.2-9 0.08 MiB34hegjon-test/python-editables 0.6-1 0.04 MiB 0.01 MiB35extra/python-hatchling 1.30.1-1 1.09 MiB 0.16 MiB36hegjon-test/python-iniconfig 2.3.0-1 0.07 MiB37hegjon-test/python-jaraco.collections 5.1.0-3 0.11 MiB38hegjon-test/python-jaraco.context 6.1.2-1 0.06 MiB39hegjon-test/python-jaraco.functools 4.1.0-3 0.07 MiB40hegjon-test/python-jaraco.text 4.0.0-4 0.08 MiB41hegjon-test/python-more-itertools 11.1.0-1 0.77 MiB42extra/python-packaging 26.3-1 1.58 MiB43hegjon-test/python-pathspec 1.1.1-1 0.47 MiB 0.08 MiB44hegjon-test/python-platformdirs 4.11.7-1 0.47 MiB45hegjon-test/python-pluggy 1.6.0-3 0.22 MiB46hegjon-test/python-pygments 2.21.0-1 15.59 MiB47hegjon-test/python-pyproject-hooks 1.2.0-6.1 0.11 MiB48extra/python-setuptools 1:84.0.0-1 4.92 MiB49extra/python-setuptools-scm 10.2.3-1 0.23 MiB 0.05 MiB50hegjon-test/python-trove-classifiers 2026.6.1.19-1 0.16 MiB 0.02 MiB51hegjon-test/python-vcs-versioning 2.3.4-1 1.18 MiB 0.21 MiB52hegjon-test/python-wheel 0.48.0-1 0.34 MiB53extra/python-build 1.6.0-1 0.33 MiB54extra/python-coverage 7.15.3-1 2.27 MiB 0.40 MiB55hegjon-test/python-hatch-vcs 0.5.0-4 0.04 MiB 0.01 MiB56hegjon-test/python-installer 1.0.1-1 0.21 MiB57hegjon-test/python-pytest 1:9.1.1-1 4.95 MiB58Total Download Size: 0.95 MiB59Total Installed Size: 35.45 MiB60:: Proceed with installation? [Y/n]61:: Retrieving packages...62 python-coverage-7.15.3-1-x86_64 downloading...63 python-vcs-versioning-2.3.4-1-any downloading...64 python-hatchling-1.30.1-1-any downloading...65 python-pathspec-1.1.1-1-any downloading...66 python-setuptools-scm-10.2.3-1-any downloading...67 python-trove-classifiers-2026.6.1.19-1-any downloading...68 python-hatch-vcs-0.5.0-4-any downloading...69 python-editables-0.6-1-any downloading...70checking keyring...71checking package integrity...72loading package files...73checking for file conflicts...74:: Processing package changes...75installing python-packaging...76installing python-pyproject-hooks...77installing python-build...78Optional dependencies for python-build79 python-pip: to use as the Python package installer (default)80 python-uv: to use as the Python package installer81 python-virtualenv: to use virtualenv for build isolation82installing python-installer...83installing python-editables...84installing python-pathspec...85Optional dependencies for python-pathspec86 python-google-re2: re2 backend87installing python-pluggy...88installing python-trove-classifiers...89installing python-hatchling...90installing python-more-itertools...91installing python-jaraco.functools...92installing python-jaraco.context...93installing python-autocommand...94installing python-jaraco.text...95Optional dependencies for python-jaraco.text96 python-inflect: for show-newlines script97installing python-jaraco.collections...98installing python-platformdirs...99installing python-wheel...100Optional dependencies for python-wheel101 python-keyring: for wheel.signatures102 python-xdg: for wheel.signatures103 python-setuptools: for legacy bdist_wheel subcommand [pending]104installing python-setuptools...105installing python-vcs-versioning...106Optional dependencies for python-vcs-versioning107 python-rich: formatting of log messages108installing python-setuptools-scm...109Optional dependencies for python-setuptools-scm110 python-rich: use rich as console log handler111installing python-hatch-vcs...112installing python-iniconfig...113installing python-pygments...114installing python-pytest...115installing python-coverage...116:: Running post-transaction hooks...117(1/1) Arming ConditionNeedsUpdate...118==> Retrieving sources...119 -> Found termcolor-3.3.0.tar.gz120==> WARNING: Skipping all source file integrity checks.121==> Extracting sources...122 -> Extracting termcolor-3.3.0.tar.gz with bsdtar123==> Starting build()...124* Getting build dependencies for wheel...125* Building wheel...126Successfully built termcolor-3.3.0-py3-none-any.whl127==> Starting check()...128============================= test session starts ==============================129platform linux -- Python 3.14.7, pytest-9.1.1, pluggy-1.6.0130rootdir: /build/python-termcolor/src/termcolor-3.3.0131configfile: pyproject.toml132testpaths: tests133collected 85 items134tests/test_termcolor.py F.FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF........ [ 56%]135............................FF..F...F [100%]136=================================== FAILURES ===================================137__________________________________ test_basic __________________________________138monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46f6b100>139 def test_basic(monkeypatch: pytest.MonkeyPatch) -> None:140 # Arrange141 monkeypatch.setattr(os, "isatty", lambda fd: True)142 monkeypatch.setattr("sys.stdout.isatty", lambda: True)143 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)144 145 # Act / Assert146> assert colored("text") == "text\x1b[0m"147E AssertionError: assert 'text' == 'text\x1b[0m'148E149E - text[0m150E + text151tests/test_termcolor.py:47: AssertionError152____________________ test_color[black-\x1b[30mtext\x1b[0m] _____________________153capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46fadfd0>154monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46f6b490>155color = 'black', expected = '\x1b[30mtext\x1b[0m'156 @pytest.mark.parametrize(157 "color, expected",158 [159 ("black", "\x1b[30mtext\x1b[0m"),160 ("grey", "\x1b[30mtext\x1b[0m"),161 ("red", "\x1b[31mtext\x1b[0m"),162 ("green", "\x1b[32mtext\x1b[0m"),163 ("yellow", "\x1b[33mtext\x1b[0m"),164 ("blue", "\x1b[34mtext\x1b[0m"),165 ("magenta", "\x1b[35mtext\x1b[0m"),166 ("cyan", "\x1b[36mtext\x1b[0m"),167 ("white", "\x1b[97mtext\x1b[0m"),168 ("light_grey", "\x1b[37mtext\x1b[0m"),169 ("dark_grey", "\x1b[90mtext\x1b[0m"),170 ("light_blue", "\x1b[94mtext\x1b[0m"),171 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),172 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),173 (000, "text\x1b[0m"), # invalid input type174 ],175 )176 def test_color(177 capsys: pytest.CaptureFixture[str],178 monkeypatch: pytest.MonkeyPatch,179 color: str | tuple[int, int, int],180 expected: str,181 ) -> None:182 # Arrange183 monkeypatch.setattr(os, "isatty", lambda fd: True)184 monkeypatch.setattr("sys.stdout.isatty", lambda: True)185 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)186 187 # Act / Assert188> assert colored("text", color=color) == expected189E AssertionError: assert 'text' == '\x1b[30mtext\x1b[0m'190E191E - [30mtext[0m192E + text193tests/test_termcolor.py:110: AssertionError194_____________________ test_color[grey-\x1b[30mtext\x1b[0m] _____________________195capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46fc16d0>196monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46f97650>197color = 'grey', expected = '\x1b[30mtext\x1b[0m'198 @pytest.mark.parametrize(199 "color, expected",200 [201 ("black", "\x1b[30mtext\x1b[0m"),202 ("grey", "\x1b[30mtext\x1b[0m"),203 ("red", "\x1b[31mtext\x1b[0m"),204 ("green", "\x1b[32mtext\x1b[0m"),205 ("yellow", "\x1b[33mtext\x1b[0m"),206 ("blue", "\x1b[34mtext\x1b[0m"),207 ("magenta", "\x1b[35mtext\x1b[0m"),208 ("cyan", "\x1b[36mtext\x1b[0m"),209 ("white", "\x1b[97mtext\x1b[0m"),210 ("light_grey", "\x1b[37mtext\x1b[0m"),211 ("dark_grey", "\x1b[90mtext\x1b[0m"),212 ("light_blue", "\x1b[94mtext\x1b[0m"),213 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),214 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),215 (000, "text\x1b[0m"), # invalid input type216 ],217 )218 def test_color(219 capsys: pytest.CaptureFixture[str],220 monkeypatch: pytest.MonkeyPatch,221 color: str | tuple[int, int, int],222 expected: str,223 ) -> None:224 # Arrange225 monkeypatch.setattr(os, "isatty", lambda fd: True)226 monkeypatch.setattr("sys.stdout.isatty", lambda: True)227 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)228 229 # Act / Assert230> assert colored("text", color=color) == expected231E AssertionError: assert 'text' == '\x1b[30mtext\x1b[0m'232E233E - [30mtext[0m234E + text235tests/test_termcolor.py:110: AssertionError236_____________________ test_color[red-\x1b[31mtext\x1b[0m] ______________________237capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46fc1e50>238monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46fa3570>239color = 'red', expected = '\x1b[31mtext\x1b[0m'240 @pytest.mark.parametrize(241 "color, expected",242 [243 ("black", "\x1b[30mtext\x1b[0m"),244 ("grey", "\x1b[30mtext\x1b[0m"),245 ("red", "\x1b[31mtext\x1b[0m"),246 ("green", "\x1b[32mtext\x1b[0m"),247 ("yellow", "\x1b[33mtext\x1b[0m"),248 ("blue", "\x1b[34mtext\x1b[0m"),249 ("magenta", "\x1b[35mtext\x1b[0m"),250 ("cyan", "\x1b[36mtext\x1b[0m"),251 ("white", "\x1b[97mtext\x1b[0m"),252 ("light_grey", "\x1b[37mtext\x1b[0m"),253 ("dark_grey", "\x1b[90mtext\x1b[0m"),254 ("light_blue", "\x1b[94mtext\x1b[0m"),255 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),256 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),257 (000, "text\x1b[0m"), # invalid input type258 ],259 )260 def test_color(261 capsys: pytest.CaptureFixture[str],262 monkeypatch: pytest.MonkeyPatch,263 color: str | tuple[int, int, int],264 expected: str,265 ) -> None:266 # Arrange267 monkeypatch.setattr(os, "isatty", lambda fd: True)268 monkeypatch.setattr("sys.stdout.isatty", lambda: True)269 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)270 271 # Act / Assert272> assert colored("text", color=color) == expected273E AssertionError: assert 'text' == '\x1b[31mtext\x1b[0m'274E275E - [31mtext[0m276E + text277tests/test_termcolor.py:110: AssertionError278____________________ test_color[green-\x1b[32mtext\x1b[0m] _____________________279capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46ebc8a0>280monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46fa39b0>281color = 'green', expected = '\x1b[32mtext\x1b[0m'282 @pytest.mark.parametrize(283 "color, expected",284 [285 ("black", "\x1b[30mtext\x1b[0m"),286 ("grey", "\x1b[30mtext\x1b[0m"),287 ("red", "\x1b[31mtext\x1b[0m"),288 ("green", "\x1b[32mtext\x1b[0m"),289 ("yellow", "\x1b[33mtext\x1b[0m"),290 ("blue", "\x1b[34mtext\x1b[0m"),291 ("magenta", "\x1b[35mtext\x1b[0m"),292 ("cyan", "\x1b[36mtext\x1b[0m"),293 ("white", "\x1b[97mtext\x1b[0m"),294 ("light_grey", "\x1b[37mtext\x1b[0m"),295 ("dark_grey", "\x1b[90mtext\x1b[0m"),296 ("light_blue", "\x1b[94mtext\x1b[0m"),297 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),298 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),299 (000, "text\x1b[0m"), # invalid input type300 ],301 )302 def test_color(303 capsys: pytest.CaptureFixture[str],304 monkeypatch: pytest.MonkeyPatch,305 color: str | tuple[int, int, int],306 expected: str,307 ) -> None:308 # Arrange309 monkeypatch.setattr(os, "isatty", lambda fd: True)310 monkeypatch.setattr("sys.stdout.isatty", lambda: True)311 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)312 313 # Act / Assert314> assert colored("text", color=color) == expected315E AssertionError: assert 'text' == '\x1b[32mtext\x1b[0m'316E317E - [32mtext[0m318E + text319tests/test_termcolor.py:110: AssertionError320____________________ test_color[yellow-\x1b[33mtext\x1b[0m] ____________________321capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46ebd350>322monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e99350>323color = 'yellow', expected = '\x1b[33mtext\x1b[0m'324 @pytest.mark.parametrize(325 "color, expected",326 [327 ("black", "\x1b[30mtext\x1b[0m"),328 ("grey", "\x1b[30mtext\x1b[0m"),329 ("red", "\x1b[31mtext\x1b[0m"),330 ("green", "\x1b[32mtext\x1b[0m"),331 ("yellow", "\x1b[33mtext\x1b[0m"),332 ("blue", "\x1b[34mtext\x1b[0m"),333 ("magenta", "\x1b[35mtext\x1b[0m"),334 ("cyan", "\x1b[36mtext\x1b[0m"),335 ("white", "\x1b[97mtext\x1b[0m"),336 ("light_grey", "\x1b[37mtext\x1b[0m"),337 ("dark_grey", "\x1b[90mtext\x1b[0m"),338 ("light_blue", "\x1b[94mtext\x1b[0m"),339 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),340 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),341 (000, "text\x1b[0m"), # invalid input type342 ],343 )344 def test_color(345 capsys: pytest.CaptureFixture[str],346 monkeypatch: pytest.MonkeyPatch,347 color: str | tuple[int, int, int],348 expected: str,349 ) -> None:350 # Arrange351 monkeypatch.setattr(os, "isatty", lambda fd: True)352 monkeypatch.setattr("sys.stdout.isatty", lambda: True)353 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)354 355 # Act / Assert356> assert colored("text", color=color) == expected357E AssertionError: assert 'text' == '\x1b[33mtext\x1b[0m'358E359E - [33mtext[0m360E + text361tests/test_termcolor.py:110: AssertionError362_____________________ test_color[blue-\x1b[34mtext\x1b[0m] _____________________363capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46f96f90>364monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e99950>365color = 'blue', expected = '\x1b[34mtext\x1b[0m'366 @pytest.mark.parametrize(367 "color, expected",368 [369 ("black", "\x1b[30mtext\x1b[0m"),370 ("grey", "\x1b[30mtext\x1b[0m"),371 ("red", "\x1b[31mtext\x1b[0m"),372 ("green", "\x1b[32mtext\x1b[0m"),373 ("yellow", "\x1b[33mtext\x1b[0m"),374 ("blue", "\x1b[34mtext\x1b[0m"),375 ("magenta", "\x1b[35mtext\x1b[0m"),376 ("cyan", "\x1b[36mtext\x1b[0m"),377 ("white", "\x1b[97mtext\x1b[0m"),378 ("light_grey", "\x1b[37mtext\x1b[0m"),379 ("dark_grey", "\x1b[90mtext\x1b[0m"),380 ("light_blue", "\x1b[94mtext\x1b[0m"),381 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),382 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),383 (000, "text\x1b[0m"), # invalid input type384 ],385 )386 def test_color(387 capsys: pytest.CaptureFixture[str],388 monkeypatch: pytest.MonkeyPatch,389 color: str | tuple[int, int, int],390 expected: str,391 ) -> None:392 # Arrange393 monkeypatch.setattr(os, "isatty", lambda fd: True)394 monkeypatch.setattr("sys.stdout.isatty", lambda: True)395 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)396 397 # Act / Assert398> assert colored("text", color=color) == expected399E AssertionError: assert 'text' == '\x1b[34mtext\x1b[0m'400E401E - [34mtext[0m402E + text403tests/test_termcolor.py:110: AssertionError404___________________ test_color[magenta-\x1b[35mtext\x1b[0m] ____________________405capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46cdc380>406monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e457c0>407color = 'magenta', expected = '\x1b[35mtext\x1b[0m'408 @pytest.mark.parametrize(409 "color, expected",410 [411 ("black", "\x1b[30mtext\x1b[0m"),412 ("grey", "\x1b[30mtext\x1b[0m"),413 ("red", "\x1b[31mtext\x1b[0m"),414 ("green", "\x1b[32mtext\x1b[0m"),415 ("yellow", "\x1b[33mtext\x1b[0m"),416 ("blue", "\x1b[34mtext\x1b[0m"),417 ("magenta", "\x1b[35mtext\x1b[0m"),418 ("cyan", "\x1b[36mtext\x1b[0m"),419 ("white", "\x1b[97mtext\x1b[0m"),420 ("light_grey", "\x1b[37mtext\x1b[0m"),421 ("dark_grey", "\x1b[90mtext\x1b[0m"),422 ("light_blue", "\x1b[94mtext\x1b[0m"),423 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),424 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),425 (000, "text\x1b[0m"), # invalid input type426 ],427 )428 def test_color(429 capsys: pytest.CaptureFixture[str],430 monkeypatch: pytest.MonkeyPatch,431 color: str | tuple[int, int, int],432 expected: str,433 ) -> None:434 # Arrange435 monkeypatch.setattr(os, "isatty", lambda fd: True)436 monkeypatch.setattr("sys.stdout.isatty", lambda: True)437 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)438 439 # Act / Assert440> assert colored("text", color=color) == expected441E AssertionError: assert 'text' == '\x1b[35mtext\x1b[0m'442E443E - [35mtext[0m444E + text445tests/test_termcolor.py:110: AssertionError446_____________________ test_color[cyan-\x1b[36mtext\x1b[0m] _____________________447capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46cdcaf0>448monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e463f0>449color = 'cyan', expected = '\x1b[36mtext\x1b[0m'450 @pytest.mark.parametrize(451 "color, expected",452 [453 ("black", "\x1b[30mtext\x1b[0m"),454 ("grey", "\x1b[30mtext\x1b[0m"),455 ("red", "\x1b[31mtext\x1b[0m"),456 ("green", "\x1b[32mtext\x1b[0m"),457 ("yellow", "\x1b[33mtext\x1b[0m"),458 ("blue", "\x1b[34mtext\x1b[0m"),459 ("magenta", "\x1b[35mtext\x1b[0m"),460 ("cyan", "\x1b[36mtext\x1b[0m"),461 ("white", "\x1b[97mtext\x1b[0m"),462 ("light_grey", "\x1b[37mtext\x1b[0m"),463 ("dark_grey", "\x1b[90mtext\x1b[0m"),464 ("light_blue", "\x1b[94mtext\x1b[0m"),465 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),466 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),467 (000, "text\x1b[0m"), # invalid input type468 ],469 )470 def test_color(471 capsys: pytest.CaptureFixture[str],472 monkeypatch: pytest.MonkeyPatch,473 color: str | tuple[int, int, int],474 expected: str,475 ) -> None:476 # Arrange477 monkeypatch.setattr(os, "isatty", lambda fd: True)478 monkeypatch.setattr("sys.stdout.isatty", lambda: True)479 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)480 481 # Act / Assert482> assert colored("text", color=color) == expected483E AssertionError: assert 'text' == '\x1b[36mtext\x1b[0m'484E485E - [36mtext[0m486E + text487tests/test_termcolor.py:110: AssertionError488____________________ test_color[white-\x1b[97mtext\x1b[0m] _____________________489capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e9ae50>490monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46cec750>491color = 'white', expected = '\x1b[97mtext\x1b[0m'492 @pytest.mark.parametrize(493 "color, expected",494 [495 ("black", "\x1b[30mtext\x1b[0m"),496 ("grey", "\x1b[30mtext\x1b[0m"),497 ("red", "\x1b[31mtext\x1b[0m"),498 ("green", "\x1b[32mtext\x1b[0m"),499 ("yellow", "\x1b[33mtext\x1b[0m"),500 ("blue", "\x1b[34mtext\x1b[0m"),501 ("magenta", "\x1b[35mtext\x1b[0m"),502 ("cyan", "\x1b[36mtext\x1b[0m"),503 ("white", "\x1b[97mtext\x1b[0m"),504 ("light_grey", "\x1b[37mtext\x1b[0m"),505 ("dark_grey", "\x1b[90mtext\x1b[0m"),506 ("light_blue", "\x1b[94mtext\x1b[0m"),507 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),508 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),509 (000, "text\x1b[0m"), # invalid input type510 ],511 )512 def test_color(513 capsys: pytest.CaptureFixture[str],514 monkeypatch: pytest.MonkeyPatch,515 color: str | tuple[int, int, int],516 expected: str,517 ) -> None:518 # Arrange519 monkeypatch.setattr(os, "isatty", lambda fd: True)520 monkeypatch.setattr("sys.stdout.isatty", lambda: True)521 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)522 523 # Act / Assert524> assert colored("text", color=color) == expected525E AssertionError: assert 'text' == '\x1b[97mtext\x1b[0m'526E527E - [97mtext[0m528E + text529tests/test_termcolor.py:110: AssertionError530__________________ test_color[light_grey-\x1b[37mtext\x1b[0m] __________________531capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e9b950>532monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46cec830>533color = 'light_grey', expected = '\x1b[37mtext\x1b[0m'534 @pytest.mark.parametrize(535 "color, expected",536 [537 ("black", "\x1b[30mtext\x1b[0m"),538 ("grey", "\x1b[30mtext\x1b[0m"),539 ("red", "\x1b[31mtext\x1b[0m"),540 ("green", "\x1b[32mtext\x1b[0m"),541 ("yellow", "\x1b[33mtext\x1b[0m"),542 ("blue", "\x1b[34mtext\x1b[0m"),543 ("magenta", "\x1b[35mtext\x1b[0m"),544 ("cyan", "\x1b[36mtext\x1b[0m"),545 ("white", "\x1b[97mtext\x1b[0m"),546 ("light_grey", "\x1b[37mtext\x1b[0m"),547 ("dark_grey", "\x1b[90mtext\x1b[0m"),548 ("light_blue", "\x1b[94mtext\x1b[0m"),549 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),550 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),551 (000, "text\x1b[0m"), # invalid input type552 ],553 )554 def test_color(555 capsys: pytest.CaptureFixture[str],556 monkeypatch: pytest.MonkeyPatch,557 color: str | tuple[int, int, int],558 expected: str,559 ) -> None:560 # Arrange561 monkeypatch.setattr(os, "isatty", lambda fd: True)562 monkeypatch.setattr("sys.stdout.isatty", lambda: True)563 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)564 565 # Act / Assert566> assert colored("text", color=color) == expected567E AssertionError: assert 'text' == '\x1b[37mtext\x1b[0m'568E569E - [37mtext[0m570E + text571tests/test_termcolor.py:110: AssertionError572__________________ test_color[dark_grey-\x1b[90mtext\x1b[0m] ___________________573capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e47200>574monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46ce7790>575color = 'dark_grey', expected = '\x1b[90mtext\x1b[0m'576 @pytest.mark.parametrize(577 "color, expected",578 [579 ("black", "\x1b[30mtext\x1b[0m"),580 ("grey", "\x1b[30mtext\x1b[0m"),581 ("red", "\x1b[31mtext\x1b[0m"),582 ("green", "\x1b[32mtext\x1b[0m"),583 ("yellow", "\x1b[33mtext\x1b[0m"),584 ("blue", "\x1b[34mtext\x1b[0m"),585 ("magenta", "\x1b[35mtext\x1b[0m"),586 ("cyan", "\x1b[36mtext\x1b[0m"),587 ("white", "\x1b[97mtext\x1b[0m"),588 ("light_grey", "\x1b[37mtext\x1b[0m"),589 ("dark_grey", "\x1b[90mtext\x1b[0m"),590 ("light_blue", "\x1b[94mtext\x1b[0m"),591 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),592 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),593 (000, "text\x1b[0m"), # invalid input type594 ],595 )596 def test_color(597 capsys: pytest.CaptureFixture[str],598 monkeypatch: pytest.MonkeyPatch,599 color: str | tuple[int, int, int],600 expected: str,601 ) -> None:602 # Arrange603 monkeypatch.setattr(os, "isatty", lambda fd: True)604 monkeypatch.setattr("sys.stdout.isatty", lambda: True)605 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)606 607 # Act / Assert608> assert colored("text", color=color) == expected609E AssertionError: assert 'text' == '\x1b[90mtext\x1b[0m'610E611E - [90mtext[0m612E + text613tests/test_termcolor.py:110: AssertionError614__________________ test_color[light_blue-\x1b[94mtext\x1b[0m] __________________615capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e46030>616monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c4785bdd0>617color = 'light_blue', expected = '\x1b[94mtext\x1b[0m'618 @pytest.mark.parametrize(619 "color, expected",620 [621 ("black", "\x1b[30mtext\x1b[0m"),622 ("grey", "\x1b[30mtext\x1b[0m"),623 ("red", "\x1b[31mtext\x1b[0m"),624 ("green", "\x1b[32mtext\x1b[0m"),625 ("yellow", "\x1b[33mtext\x1b[0m"),626 ("blue", "\x1b[34mtext\x1b[0m"),627 ("magenta", "\x1b[35mtext\x1b[0m"),628 ("cyan", "\x1b[36mtext\x1b[0m"),629 ("white", "\x1b[97mtext\x1b[0m"),630 ("light_grey", "\x1b[37mtext\x1b[0m"),631 ("dark_grey", "\x1b[90mtext\x1b[0m"),632 ("light_blue", "\x1b[94mtext\x1b[0m"),633 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),634 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),635 (000, "text\x1b[0m"), # invalid input type636 ],637 )638 def test_color(639 capsys: pytest.CaptureFixture[str],640 monkeypatch: pytest.MonkeyPatch,641 color: str | tuple[int, int, int],642 expected: str,643 ) -> None:644 # Arrange645 monkeypatch.setattr(os, "isatty", lambda fd: True)646 monkeypatch.setattr("sys.stdout.isatty", lambda: True)647 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)648 649 # Act / Assert650> assert colored("text", color=color) == expected651E AssertionError: assert 'text' == '\x1b[94mtext\x1b[0m'652E653E - [94mtext[0m654E + text655tests/test_termcolor.py:110: AssertionError656_______________ test_color[color12-\x1b[38;2;1;2;3mtext\x1b[0m] ________________657capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d85550>658monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c4785bad0>659color = (1, 2, 3), expected = '\x1b[38;2;1;2;3mtext\x1b[0m'660 @pytest.mark.parametrize(661 "color, expected",662 [663 ("black", "\x1b[30mtext\x1b[0m"),664 ("grey", "\x1b[30mtext\x1b[0m"),665 ("red", "\x1b[31mtext\x1b[0m"),666 ("green", "\x1b[32mtext\x1b[0m"),667 ("yellow", "\x1b[33mtext\x1b[0m"),668 ("blue", "\x1b[34mtext\x1b[0m"),669 ("magenta", "\x1b[35mtext\x1b[0m"),670 ("cyan", "\x1b[36mtext\x1b[0m"),671 ("white", "\x1b[97mtext\x1b[0m"),672 ("light_grey", "\x1b[37mtext\x1b[0m"),673 ("dark_grey", "\x1b[90mtext\x1b[0m"),674 ("light_blue", "\x1b[94mtext\x1b[0m"),675 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),676 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),677 (000, "text\x1b[0m"), # invalid input type678 ],679 )680 def test_color(681 capsys: pytest.CaptureFixture[str],682 monkeypatch: pytest.MonkeyPatch,683 color: str | tuple[int, int, int],684 expected: str,685 ) -> None:686 # Arrange687 monkeypatch.setattr(os, "isatty", lambda fd: True)688 monkeypatch.setattr("sys.stdout.isatty", lambda: True)689 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)690 691 # Act / Assert692> assert colored("text", color=color) == expected693E AssertionError: assert 'text' == '\x1b[38;2;1;2;3mtext\x1b[0m'694E695E - [38;2;1;2;3mtext[0m696E + text697tests/test_termcolor.py:110: AssertionError698____________ test_color[color13-\x1b[38;2;100;200;150mtext\x1b[0m] _____________699capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e35e10>700monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e3f960>701color = (100, 200, 150), expected = '\x1b[38;2;100;200;150mtext\x1b[0m'702 @pytest.mark.parametrize(703 "color, expected",704 [705 ("black", "\x1b[30mtext\x1b[0m"),706 ("grey", "\x1b[30mtext\x1b[0m"),707 ("red", "\x1b[31mtext\x1b[0m"),708 ("green", "\x1b[32mtext\x1b[0m"),709 ("yellow", "\x1b[33mtext\x1b[0m"),710 ("blue", "\x1b[34mtext\x1b[0m"),711 ("magenta", "\x1b[35mtext\x1b[0m"),712 ("cyan", "\x1b[36mtext\x1b[0m"),713 ("white", "\x1b[97mtext\x1b[0m"),714 ("light_grey", "\x1b[37mtext\x1b[0m"),715 ("dark_grey", "\x1b[90mtext\x1b[0m"),716 ("light_blue", "\x1b[94mtext\x1b[0m"),717 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),718 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),719 (000, "text\x1b[0m"), # invalid input type720 ],721 )722 def test_color(723 capsys: pytest.CaptureFixture[str],724 monkeypatch: pytest.MonkeyPatch,725 color: str | tuple[int, int, int],726 expected: str,727 ) -> None:728 # Arrange729 monkeypatch.setattr(os, "isatty", lambda fd: True)730 monkeypatch.setattr("sys.stdout.isatty", lambda: True)731 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)732 733 # Act / Assert734> assert colored("text", color=color) == expected735E AssertionError: assert 'text' == '\x1b[38;2;10...0mtext\x1b[0m'736E737E - [38;2;100;200;150mtext[0m738E + text739tests/test_termcolor.py:110: AssertionError740__________________________ test_color[0-text\x1b[0m] ___________________________741capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46ce5570>742monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e54050>743color = 0, expected = 'text\x1b[0m'744 @pytest.mark.parametrize(745 "color, expected",746 [747 ("black", "\x1b[30mtext\x1b[0m"),748 ("grey", "\x1b[30mtext\x1b[0m"),749 ("red", "\x1b[31mtext\x1b[0m"),750 ("green", "\x1b[32mtext\x1b[0m"),751 ("yellow", "\x1b[33mtext\x1b[0m"),752 ("blue", "\x1b[34mtext\x1b[0m"),753 ("magenta", "\x1b[35mtext\x1b[0m"),754 ("cyan", "\x1b[36mtext\x1b[0m"),755 ("white", "\x1b[97mtext\x1b[0m"),756 ("light_grey", "\x1b[37mtext\x1b[0m"),757 ("dark_grey", "\x1b[90mtext\x1b[0m"),758 ("light_blue", "\x1b[94mtext\x1b[0m"),759 ((1, 2, 3), "\x1b[38;2;1;2;3mtext\x1b[0m"),760 ((100, 200, 150), "\x1b[38;2;100;200;150mtext\x1b[0m"),761 (000, "text\x1b[0m"), # invalid input type762 ],763 )764 def test_color(765 capsys: pytest.CaptureFixture[str],766 monkeypatch: pytest.MonkeyPatch,767 color: str | tuple[int, int, int],768 expected: str,769 ) -> None:770 # Arrange771 monkeypatch.setattr(os, "isatty", lambda fd: True)772 monkeypatch.setattr("sys.stdout.isatty", lambda: True)773 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)774 775 # Act / Assert776> assert colored("text", color=color) == expected777E AssertionError: assert 'text' == 'text\x1b[0m'778E779E - text[0m780E + text781tests/test_termcolor.py:110: AssertionError782_________________ test_on_color[on_black-\x1b[40mtext\x1b[0m] __________________783capsys = <_pytest.capture.CaptureFixture object at 0x7f4c4785b4d0>784monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46fb74d0>785on_color = 'on_black', expected = '\x1b[40mtext\x1b[0m'786 @pytest.mark.parametrize(787 "on_color, expected",788 [789 ("on_black", "\x1b[40mtext\x1b[0m"),790 ("on_grey", "\x1b[40mtext\x1b[0m"),791 ("on_red", "\x1b[41mtext\x1b[0m"),792 ("on_green", "\x1b[42mtext\x1b[0m"),793 ("on_yellow", "\x1b[43mtext\x1b[0m"),794 ("on_blue", "\x1b[44mtext\x1b[0m"),795 ("on_magenta", "\x1b[45mtext\x1b[0m"),796 ("on_cyan", "\x1b[46mtext\x1b[0m"),797 ("on_white", "\x1b[107mtext\x1b[0m"),798 ("on_light_grey", "\x1b[47mtext\x1b[0m"),799 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),800 ("on_light_blue", "\x1b[104mtext\x1b[0m"),801 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),802 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),803 (000, "text\x1b[0m"), # invalid input type804 ],805 )806 def test_on_color(807 capsys: pytest.CaptureFixture[str],808 monkeypatch: pytest.MonkeyPatch,809 on_color: str | tuple[int, int, int],810 expected: str,811 ) -> None:812 # Arrange813 monkeypatch.setattr(os, "isatty", lambda fd: True)814 monkeypatch.setattr("sys.stdout.isatty", lambda: True)815 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)816 817 # Act / Assert818> assert colored("text", on_color=on_color) == expected819E AssertionError: assert 'text' == '\x1b[40mtext\x1b[0m'820E821E - [40mtext[0m822E + text823tests/test_termcolor.py:146: AssertionError824__________________ test_on_color[on_grey-\x1b[40mtext\x1b[0m] __________________825capsys = <_pytest.capture.CaptureFixture object at 0x7f4c4785b410>826monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46fb76b0>827on_color = 'on_grey', expected = '\x1b[40mtext\x1b[0m'828 @pytest.mark.parametrize(829 "on_color, expected",830 [831 ("on_black", "\x1b[40mtext\x1b[0m"),832 ("on_grey", "\x1b[40mtext\x1b[0m"),833 ("on_red", "\x1b[41mtext\x1b[0m"),834 ("on_green", "\x1b[42mtext\x1b[0m"),835 ("on_yellow", "\x1b[43mtext\x1b[0m"),836 ("on_blue", "\x1b[44mtext\x1b[0m"),837 ("on_magenta", "\x1b[45mtext\x1b[0m"),838 ("on_cyan", "\x1b[46mtext\x1b[0m"),839 ("on_white", "\x1b[107mtext\x1b[0m"),840 ("on_light_grey", "\x1b[47mtext\x1b[0m"),841 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),842 ("on_light_blue", "\x1b[104mtext\x1b[0m"),843 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),844 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),845 (000, "text\x1b[0m"), # invalid input type846 ],847 )848 def test_on_color(849 capsys: pytest.CaptureFixture[str],850 monkeypatch: pytest.MonkeyPatch,851 on_color: str | tuple[int, int, int],852 expected: str,853 ) -> None:854 # Arrange855 monkeypatch.setattr(os, "isatty", lambda fd: True)856 monkeypatch.setattr("sys.stdout.isatty", lambda: True)857 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)858 859 # Act / Assert860> assert colored("text", on_color=on_color) == expected861E AssertionError: assert 'text' == '\x1b[40mtext\x1b[0m'862E863E - [40mtext[0m864E + text865tests/test_termcolor.py:146: AssertionError866__________________ test_on_color[on_red-\x1b[41mtext\x1b[0m] ___________________867capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e54d60>868monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46efbad0>869on_color = 'on_red', expected = '\x1b[41mtext\x1b[0m'870 @pytest.mark.parametrize(871 "on_color, expected",872 [873 ("on_black", "\x1b[40mtext\x1b[0m"),874 ("on_grey", "\x1b[40mtext\x1b[0m"),875 ("on_red", "\x1b[41mtext\x1b[0m"),876 ("on_green", "\x1b[42mtext\x1b[0m"),877 ("on_yellow", "\x1b[43mtext\x1b[0m"),878 ("on_blue", "\x1b[44mtext\x1b[0m"),879 ("on_magenta", "\x1b[45mtext\x1b[0m"),880 ("on_cyan", "\x1b[46mtext\x1b[0m"),881 ("on_white", "\x1b[107mtext\x1b[0m"),882 ("on_light_grey", "\x1b[47mtext\x1b[0m"),883 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),884 ("on_light_blue", "\x1b[104mtext\x1b[0m"),885 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),886 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),887 (000, "text\x1b[0m"), # invalid input type888 ],889 )890 def test_on_color(891 capsys: pytest.CaptureFixture[str],892 monkeypatch: pytest.MonkeyPatch,893 on_color: str | tuple[int, int, int],894 expected: str,895 ) -> None:896 # Arrange897 monkeypatch.setattr(os, "isatty", lambda fd: True)898 monkeypatch.setattr("sys.stdout.isatty", lambda: True)899 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)900 901 # Act / Assert902> assert colored("text", on_color=on_color) == expected903E AssertionError: assert 'text' == '\x1b[41mtext\x1b[0m'904E905E - [41mtext[0m906E + text907tests/test_termcolor.py:146: AssertionError908_________________ test_on_color[on_green-\x1b[42mtext\x1b[0m] __________________909capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e55440>910monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e5cfd0>911on_color = 'on_green', expected = '\x1b[42mtext\x1b[0m'912 @pytest.mark.parametrize(913 "on_color, expected",914 [915 ("on_black", "\x1b[40mtext\x1b[0m"),916 ("on_grey", "\x1b[40mtext\x1b[0m"),917 ("on_red", "\x1b[41mtext\x1b[0m"),918 ("on_green", "\x1b[42mtext\x1b[0m"),919 ("on_yellow", "\x1b[43mtext\x1b[0m"),920 ("on_blue", "\x1b[44mtext\x1b[0m"),921 ("on_magenta", "\x1b[45mtext\x1b[0m"),922 ("on_cyan", "\x1b[46mtext\x1b[0m"),923 ("on_white", "\x1b[107mtext\x1b[0m"),924 ("on_light_grey", "\x1b[47mtext\x1b[0m"),925 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),926 ("on_light_blue", "\x1b[104mtext\x1b[0m"),927 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),928 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),929 (000, "text\x1b[0m"), # invalid input type930 ],931 )932 def test_on_color(933 capsys: pytest.CaptureFixture[str],934 monkeypatch: pytest.MonkeyPatch,935 on_color: str | tuple[int, int, int],936 expected: str,937 ) -> None:938 # Arrange939 monkeypatch.setattr(os, "isatty", lambda fd: True)940 monkeypatch.setattr("sys.stdout.isatty", lambda: True)941 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)942 943 # Act / Assert944> assert colored("text", on_color=on_color) == expected945E AssertionError: assert 'text' == '\x1b[42mtext\x1b[0m'946E947E - [42mtext[0m948E + text949tests/test_termcolor.py:146: AssertionError950_________________ test_on_color[on_yellow-\x1b[43mtext\x1b[0m] _________________951capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46fb7b10>952monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e5d3d0>953on_color = 'on_yellow', expected = '\x1b[43mtext\x1b[0m'954 @pytest.mark.parametrize(955 "on_color, expected",956 [957 ("on_black", "\x1b[40mtext\x1b[0m"),958 ("on_grey", "\x1b[40mtext\x1b[0m"),959 ("on_red", "\x1b[41mtext\x1b[0m"),960 ("on_green", "\x1b[42mtext\x1b[0m"),961 ("on_yellow", "\x1b[43mtext\x1b[0m"),962 ("on_blue", "\x1b[44mtext\x1b[0m"),963 ("on_magenta", "\x1b[45mtext\x1b[0m"),964 ("on_cyan", "\x1b[46mtext\x1b[0m"),965 ("on_white", "\x1b[107mtext\x1b[0m"),966 ("on_light_grey", "\x1b[47mtext\x1b[0m"),967 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),968 ("on_light_blue", "\x1b[104mtext\x1b[0m"),969 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),970 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),971 (000, "text\x1b[0m"), # invalid input type972 ],973 )974 def test_on_color(975 capsys: pytest.CaptureFixture[str],976 monkeypatch: pytest.MonkeyPatch,977 on_color: str | tuple[int, int, int],978 expected: str,979 ) -> None:980 # Arrange981 monkeypatch.setattr(os, "isatty", lambda fd: True)982 monkeypatch.setattr("sys.stdout.isatty", lambda: True)983 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)984 985 # Act / Assert986> assert colored("text", on_color=on_color) == expected987E AssertionError: assert 'text' == '\x1b[43mtext\x1b[0m'988E989E - [43mtext[0m990E + text991tests/test_termcolor.py:146: AssertionError992__________________ test_on_color[on_blue-\x1b[44mtext\x1b[0m] __________________993capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46fb7cf0>994monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e915c0>995on_color = 'on_blue', expected = '\x1b[44mtext\x1b[0m'996 @pytest.mark.parametrize(997 "on_color, expected",998 [999 ("on_black", "\x1b[40mtext\x1b[0m"),1000 ("on_grey", "\x1b[40mtext\x1b[0m"),1001 ("on_red", "\x1b[41mtext\x1b[0m"),1002 ("on_green", "\x1b[42mtext\x1b[0m"),1003 ("on_yellow", "\x1b[43mtext\x1b[0m"),1004 ("on_blue", "\x1b[44mtext\x1b[0m"),1005 ("on_magenta", "\x1b[45mtext\x1b[0m"),1006 ("on_cyan", "\x1b[46mtext\x1b[0m"),1007 ("on_white", "\x1b[107mtext\x1b[0m"),1008 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1009 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1010 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1011 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1012 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1013 (000, "text\x1b[0m"), # invalid input type1014 ],1015 )1016 def test_on_color(1017 capsys: pytest.CaptureFixture[str],1018 monkeypatch: pytest.MonkeyPatch,1019 on_color: str | tuple[int, int, int],1020 expected: str,1021 ) -> None:1022 # Arrange1023 monkeypatch.setattr(os, "isatty", lambda fd: True)1024 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1025 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1026 1027 # Act / Assert1028> assert colored("text", on_color=on_color) == expected1029E AssertionError: assert 'text' == '\x1b[44mtext\x1b[0m'1030E1031E - [44mtext[0m1032E + text1033tests/test_termcolor.py:146: AssertionError1034________________ test_on_color[on_magenta-\x1b[45mtext\x1b[0m] _________________1035capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d79b50>1036monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e93b60>1037on_color = 'on_magenta', expected = '\x1b[45mtext\x1b[0m'1038 @pytest.mark.parametrize(1039 "on_color, expected",1040 [1041 ("on_black", "\x1b[40mtext\x1b[0m"),1042 ("on_grey", "\x1b[40mtext\x1b[0m"),1043 ("on_red", "\x1b[41mtext\x1b[0m"),1044 ("on_green", "\x1b[42mtext\x1b[0m"),1045 ("on_yellow", "\x1b[43mtext\x1b[0m"),1046 ("on_blue", "\x1b[44mtext\x1b[0m"),1047 ("on_magenta", "\x1b[45mtext\x1b[0m"),1048 ("on_cyan", "\x1b[46mtext\x1b[0m"),1049 ("on_white", "\x1b[107mtext\x1b[0m"),1050 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1051 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1052 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1053 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1054 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1055 (000, "text\x1b[0m"), # invalid input type1056 ],1057 )1058 def test_on_color(1059 capsys: pytest.CaptureFixture[str],1060 monkeypatch: pytest.MonkeyPatch,1061 on_color: str | tuple[int, int, int],1062 expected: str,1063 ) -> None:1064 # Arrange1065 monkeypatch.setattr(os, "isatty", lambda fd: True)1066 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1067 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1068 1069 # Act / Assert1070> assert colored("text", on_color=on_color) == expected1071E AssertionError: assert 'text' == '\x1b[45mtext\x1b[0m'1072E1073E - [45mtext[0m1074E + text1075tests/test_termcolor.py:146: AssertionError1076__________________ test_on_color[on_cyan-\x1b[46mtext\x1b[0m] __________________1077capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d480d0>1078monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e93380>1079on_color = 'on_cyan', expected = '\x1b[46mtext\x1b[0m'1080 @pytest.mark.parametrize(1081 "on_color, expected",1082 [1083 ("on_black", "\x1b[40mtext\x1b[0m"),1084 ("on_grey", "\x1b[40mtext\x1b[0m"),1085 ("on_red", "\x1b[41mtext\x1b[0m"),1086 ("on_green", "\x1b[42mtext\x1b[0m"),1087 ("on_yellow", "\x1b[43mtext\x1b[0m"),1088 ("on_blue", "\x1b[44mtext\x1b[0m"),1089 ("on_magenta", "\x1b[45mtext\x1b[0m"),1090 ("on_cyan", "\x1b[46mtext\x1b[0m"),1091 ("on_white", "\x1b[107mtext\x1b[0m"),1092 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1093 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1094 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1095 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1096 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1097 (000, "text\x1b[0m"), # invalid input type1098 ],1099 )1100 def test_on_color(1101 capsys: pytest.CaptureFixture[str],1102 monkeypatch: pytest.MonkeyPatch,1103 on_color: str | tuple[int, int, int],1104 expected: str,1105 ) -> None:1106 # Arrange1107 monkeypatch.setattr(os, "isatty", lambda fd: True)1108 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1109 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1110 1111 # Act / Assert1112> assert colored("text", on_color=on_color) == expected1113E AssertionError: assert 'text' == '\x1b[46mtext\x1b[0m'1114E1115E - [46mtext[0m1116E + text1117tests/test_termcolor.py:146: AssertionError1118_________________ test_on_color[on_white-\x1b[107mtext\x1b[0m] _________________1119capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d48150>1120monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e93cb0>1121on_color = 'on_white', expected = '\x1b[107mtext\x1b[0m'1122 @pytest.mark.parametrize(1123 "on_color, expected",1124 [1125 ("on_black", "\x1b[40mtext\x1b[0m"),1126 ("on_grey", "\x1b[40mtext\x1b[0m"),1127 ("on_red", "\x1b[41mtext\x1b[0m"),1128 ("on_green", "\x1b[42mtext\x1b[0m"),1129 ("on_yellow", "\x1b[43mtext\x1b[0m"),1130 ("on_blue", "\x1b[44mtext\x1b[0m"),1131 ("on_magenta", "\x1b[45mtext\x1b[0m"),1132 ("on_cyan", "\x1b[46mtext\x1b[0m"),1133 ("on_white", "\x1b[107mtext\x1b[0m"),1134 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1135 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1136 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1137 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1138 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1139 (000, "text\x1b[0m"), # invalid input type1140 ],1141 )1142 def test_on_color(1143 capsys: pytest.CaptureFixture[str],1144 monkeypatch: pytest.MonkeyPatch,1145 on_color: str | tuple[int, int, int],1146 expected: str,1147 ) -> None:1148 # Arrange1149 monkeypatch.setattr(os, "isatty", lambda fd: True)1150 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1151 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1152 1153 # Act / Assert1154> assert colored("text", on_color=on_color) == expected1155E AssertionError: assert 'text' == '\x1b[107mtext\x1b[0m'1156E1157E - [107mtext[0m1158E + text1159tests/test_termcolor.py:146: AssertionError1160_______________ test_on_color[on_light_grey-\x1b[47mtext\x1b[0m] _______________1161capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d482d0>1162monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e84d70>1163on_color = 'on_light_grey', expected = '\x1b[47mtext\x1b[0m'1164 @pytest.mark.parametrize(1165 "on_color, expected",1166 [1167 ("on_black", "\x1b[40mtext\x1b[0m"),1168 ("on_grey", "\x1b[40mtext\x1b[0m"),1169 ("on_red", "\x1b[41mtext\x1b[0m"),1170 ("on_green", "\x1b[42mtext\x1b[0m"),1171 ("on_yellow", "\x1b[43mtext\x1b[0m"),1172 ("on_blue", "\x1b[44mtext\x1b[0m"),1173 ("on_magenta", "\x1b[45mtext\x1b[0m"),1174 ("on_cyan", "\x1b[46mtext\x1b[0m"),1175 ("on_white", "\x1b[107mtext\x1b[0m"),1176 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1177 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1178 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1179 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1180 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1181 (000, "text\x1b[0m"), # invalid input type1182 ],1183 )1184 def test_on_color(1185 capsys: pytest.CaptureFixture[str],1186 monkeypatch: pytest.MonkeyPatch,1187 on_color: str | tuple[int, int, int],1188 expected: str,1189 ) -> None:1190 # Arrange1191 monkeypatch.setattr(os, "isatty", lambda fd: True)1192 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1193 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1194 1195 # Act / Assert1196> assert colored("text", on_color=on_color) == expected1197E AssertionError: assert 'text' == '\x1b[47mtext\x1b[0m'1198E1199E - [47mtext[0m1200E + text1201tests/test_termcolor.py:146: AssertionError1202_______________ test_on_color[on_dark_grey-\x1b[100mtext\x1b[0m] _______________1203capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46d4aa50>1204monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e841a0>1205on_color = 'on_dark_grey', expected = '\x1b[100mtext\x1b[0m'1206 @pytest.mark.parametrize(1207 "on_color, expected",1208 [1209 ("on_black", "\x1b[40mtext\x1b[0m"),1210 ("on_grey", "\x1b[40mtext\x1b[0m"),1211 ("on_red", "\x1b[41mtext\x1b[0m"),1212 ("on_green", "\x1b[42mtext\x1b[0m"),1213 ("on_yellow", "\x1b[43mtext\x1b[0m"),1214 ("on_blue", "\x1b[44mtext\x1b[0m"),1215 ("on_magenta", "\x1b[45mtext\x1b[0m"),1216 ("on_cyan", "\x1b[46mtext\x1b[0m"),1217 ("on_white", "\x1b[107mtext\x1b[0m"),1218 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1219 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1220 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1221 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1222 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1223 (000, "text\x1b[0m"), # invalid input type1224 ],1225 )1226 def test_on_color(1227 capsys: pytest.CaptureFixture[str],1228 monkeypatch: pytest.MonkeyPatch,1229 on_color: str | tuple[int, int, int],1230 expected: str,1231 ) -> None:1232 # Arrange1233 monkeypatch.setattr(os, "isatty", lambda fd: True)1234 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1235 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1236 1237 # Act / Assert1238> assert colored("text", on_color=on_color) == expected1239E AssertionError: assert 'text' == '\x1b[100mtext\x1b[0m'1240E1241E - [100mtext[0m1242E + text1243tests/test_termcolor.py:146: AssertionError1244______________ test_on_color[on_light_blue-\x1b[104mtext\x1b[0m] _______________1245capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df26d0>1246monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e843d0>1247on_color = 'on_light_blue', expected = '\x1b[104mtext\x1b[0m'1248 @pytest.mark.parametrize(1249 "on_color, expected",1250 [1251 ("on_black", "\x1b[40mtext\x1b[0m"),1252 ("on_grey", "\x1b[40mtext\x1b[0m"),1253 ("on_red", "\x1b[41mtext\x1b[0m"),1254 ("on_green", "\x1b[42mtext\x1b[0m"),1255 ("on_yellow", "\x1b[43mtext\x1b[0m"),1256 ("on_blue", "\x1b[44mtext\x1b[0m"),1257 ("on_magenta", "\x1b[45mtext\x1b[0m"),1258 ("on_cyan", "\x1b[46mtext\x1b[0m"),1259 ("on_white", "\x1b[107mtext\x1b[0m"),1260 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1261 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1262 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1263 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1264 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1265 (000, "text\x1b[0m"), # invalid input type1266 ],1267 )1268 def test_on_color(1269 capsys: pytest.CaptureFixture[str],1270 monkeypatch: pytest.MonkeyPatch,1271 on_color: str | tuple[int, int, int],1272 expected: str,1273 ) -> None:1274 # Arrange1275 monkeypatch.setattr(os, "isatty", lambda fd: True)1276 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1277 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1278 1279 # Act / Assert1280> assert colored("text", on_color=on_color) == expected1281E AssertionError: assert 'text' == '\x1b[104mtext\x1b[0m'1282E1283E - [104mtext[0m1284E + text1285tests/test_termcolor.py:146: AssertionError1286____________ test_on_color[on_color12-\x1b[48;2;1;2;3mtext\x1b[0m] _____________1287capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df2050>1288monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e84590>1289on_color = (1, 2, 3), expected = '\x1b[48;2;1;2;3mtext\x1b[0m'1290 @pytest.mark.parametrize(1291 "on_color, expected",1292 [1293 ("on_black", "\x1b[40mtext\x1b[0m"),1294 ("on_grey", "\x1b[40mtext\x1b[0m"),1295 ("on_red", "\x1b[41mtext\x1b[0m"),1296 ("on_green", "\x1b[42mtext\x1b[0m"),1297 ("on_yellow", "\x1b[43mtext\x1b[0m"),1298 ("on_blue", "\x1b[44mtext\x1b[0m"),1299 ("on_magenta", "\x1b[45mtext\x1b[0m"),1300 ("on_cyan", "\x1b[46mtext\x1b[0m"),1301 ("on_white", "\x1b[107mtext\x1b[0m"),1302 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1303 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1304 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1305 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1306 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1307 (000, "text\x1b[0m"), # invalid input type1308 ],1309 )1310 def test_on_color(1311 capsys: pytest.CaptureFixture[str],1312 monkeypatch: pytest.MonkeyPatch,1313 on_color: str | tuple[int, int, int],1314 expected: str,1315 ) -> None:1316 # Arrange1317 monkeypatch.setattr(os, "isatty", lambda fd: True)1318 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1319 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1320 1321 # Act / Assert1322> assert colored("text", on_color=on_color) == expected1323E AssertionError: assert 'text' == '\x1b[48;2;1;2;3mtext\x1b[0m'1324E1325E - [48;2;1;2;3mtext[0m1326E + text1327tests/test_termcolor.py:146: AssertionError1328_________ test_on_color[on_color13-\x1b[48;2;100;200;150mtext\x1b[0m] __________1329capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5cbd0>1330monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e862e0>1331on_color = (100, 200, 150), expected = '\x1b[48;2;100;200;150mtext\x1b[0m'1332 @pytest.mark.parametrize(1333 "on_color, expected",1334 [1335 ("on_black", "\x1b[40mtext\x1b[0m"),1336 ("on_grey", "\x1b[40mtext\x1b[0m"),1337 ("on_red", "\x1b[41mtext\x1b[0m"),1338 ("on_green", "\x1b[42mtext\x1b[0m"),1339 ("on_yellow", "\x1b[43mtext\x1b[0m"),1340 ("on_blue", "\x1b[44mtext\x1b[0m"),1341 ("on_magenta", "\x1b[45mtext\x1b[0m"),1342 ("on_cyan", "\x1b[46mtext\x1b[0m"),1343 ("on_white", "\x1b[107mtext\x1b[0m"),1344 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1345 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1346 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1347 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1348 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1349 (000, "text\x1b[0m"), # invalid input type1350 ],1351 )1352 def test_on_color(1353 capsys: pytest.CaptureFixture[str],1354 monkeypatch: pytest.MonkeyPatch,1355 on_color: str | tuple[int, int, int],1356 expected: str,1357 ) -> None:1358 # Arrange1359 monkeypatch.setattr(os, "isatty", lambda fd: True)1360 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1361 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1362 1363 # Act / Assert1364> assert colored("text", on_color=on_color) == expected1365E AssertionError: assert 'text' == '\x1b[48;2;10...0mtext\x1b[0m'1366E1367E - [48;2;100;200;150mtext[0m1368E + text1369tests/test_termcolor.py:146: AssertionError1370_________________________ test_on_color[0-text\x1b[0m] _________________________1371capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5e450>1372monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e86900>1373on_color = 0, expected = 'text\x1b[0m'1374 @pytest.mark.parametrize(1375 "on_color, expected",1376 [1377 ("on_black", "\x1b[40mtext\x1b[0m"),1378 ("on_grey", "\x1b[40mtext\x1b[0m"),1379 ("on_red", "\x1b[41mtext\x1b[0m"),1380 ("on_green", "\x1b[42mtext\x1b[0m"),1381 ("on_yellow", "\x1b[43mtext\x1b[0m"),1382 ("on_blue", "\x1b[44mtext\x1b[0m"),1383 ("on_magenta", "\x1b[45mtext\x1b[0m"),1384 ("on_cyan", "\x1b[46mtext\x1b[0m"),1385 ("on_white", "\x1b[107mtext\x1b[0m"),1386 ("on_light_grey", "\x1b[47mtext\x1b[0m"),1387 ("on_dark_grey", "\x1b[100mtext\x1b[0m"),1388 ("on_light_blue", "\x1b[104mtext\x1b[0m"),1389 ((1, 2, 3), "\x1b[48;2;1;2;3mtext\x1b[0m"),1390 ((100, 200, 150), "\x1b[48;2;100;200;150mtext\x1b[0m"),1391 (000, "text\x1b[0m"), # invalid input type1392 ],1393 )1394 def test_on_color(1395 capsys: pytest.CaptureFixture[str],1396 monkeypatch: pytest.MonkeyPatch,1397 on_color: str | tuple[int, int, int],1398 expected: str,1399 ) -> None:1400 # Arrange1401 monkeypatch.setattr(os, "isatty", lambda fd: True)1402 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1403 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1404 1405 # Act / Assert1406> assert colored("text", on_color=on_color) == expected1407E AssertionError: assert 'text' == 'text\x1b[0m'1408E1409E - text[0m1410E + text1411tests/test_termcolor.py:146: AssertionError1412_____________________ test_attrs[bold-\x1b[1mtext\x1b[0m] ______________________1413capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5e850>1414monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e875b0>1415attr = 'bold', expected = '\x1b[1mtext\x1b[0m'1416 @pytest.mark.parametrize(1417 "attr, expected",1418 [1419 ("bold", "\x1b[1mtext\x1b[0m"),1420 ("dark", "\x1b[2mtext\x1b[0m"),1421 ("italic", "\x1b[3mtext\x1b[0m"),1422 ("underline", "\x1b[4mtext\x1b[0m"),1423 ("blink", "\x1b[5mtext\x1b[0m"),1424 ("reverse", "\x1b[7mtext\x1b[0m"),1425 ("concealed", "\x1b[8mtext\x1b[0m"),1426 ("strike", "\x1b[9mtext\x1b[0m"),1427 ],1428 )1429 def test_attrs(1430 capsys: pytest.CaptureFixture[str],1431 monkeypatch: pytest.MonkeyPatch,1432 attr: str,1433 expected: str,1434 ) -> None:1435 # Arrange1436 monkeypatch.setattr(os, "isatty", lambda fd: True)1437 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1438 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1439 1440 # Act / Assert1441> assert colored("text", attrs=[attr]) == expected1442E AssertionError: assert 'text' == '\x1b[1mtext\x1b[0m'1443E1444E - [1mtext[0m1445E + text1446tests/test_termcolor.py:175: AssertionError1447_____________________ test_attrs[dark-\x1b[2mtext\x1b[0m] ______________________1448capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5ded0>1449monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e87cb0>1450attr = 'dark', expected = '\x1b[2mtext\x1b[0m'1451 @pytest.mark.parametrize(1452 "attr, expected",1453 [1454 ("bold", "\x1b[1mtext\x1b[0m"),1455 ("dark", "\x1b[2mtext\x1b[0m"),1456 ("italic", "\x1b[3mtext\x1b[0m"),1457 ("underline", "\x1b[4mtext\x1b[0m"),1458 ("blink", "\x1b[5mtext\x1b[0m"),1459 ("reverse", "\x1b[7mtext\x1b[0m"),1460 ("concealed", "\x1b[8mtext\x1b[0m"),1461 ("strike", "\x1b[9mtext\x1b[0m"),1462 ],1463 )1464 def test_attrs(1465 capsys: pytest.CaptureFixture[str],1466 monkeypatch: pytest.MonkeyPatch,1467 attr: str,1468 expected: str,1469 ) -> None:1470 # Arrange1471 monkeypatch.setattr(os, "isatty", lambda fd: True)1472 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1473 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1474 1475 # Act / Assert1476> assert colored("text", attrs=[attr]) == expected1477E AssertionError: assert 'text' == '\x1b[2mtext\x1b[0m'1478E1479E - [2mtext[0m1480E + text1481tests/test_termcolor.py:175: AssertionError1482____________________ test_attrs[italic-\x1b[3mtext\x1b[0m] _____________________1483capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5c7d0>1484monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e86190>1485attr = 'italic', expected = '\x1b[3mtext\x1b[0m'1486 @pytest.mark.parametrize(1487 "attr, expected",1488 [1489 ("bold", "\x1b[1mtext\x1b[0m"),1490 ("dark", "\x1b[2mtext\x1b[0m"),1491 ("italic", "\x1b[3mtext\x1b[0m"),1492 ("underline", "\x1b[4mtext\x1b[0m"),1493 ("blink", "\x1b[5mtext\x1b[0m"),1494 ("reverse", "\x1b[7mtext\x1b[0m"),1495 ("concealed", "\x1b[8mtext\x1b[0m"),1496 ("strike", "\x1b[9mtext\x1b[0m"),1497 ],1498 )1499 def test_attrs(1500 capsys: pytest.CaptureFixture[str],1501 monkeypatch: pytest.MonkeyPatch,1502 attr: str,1503 expected: str,1504 ) -> None:1505 # Arrange1506 monkeypatch.setattr(os, "isatty", lambda fd: True)1507 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1508 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1509 1510 # Act / Assert1511> assert colored("text", attrs=[attr]) == expected1512E AssertionError: assert 'text' == '\x1b[3mtext\x1b[0m'1513E1514E - [3mtext[0m1515E + text1516tests/test_termcolor.py:175: AssertionError1517___________________ test_attrs[underline-\x1b[4mtext\x1b[0m] ___________________1518capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5d9d0>1519monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e86e40>1520attr = 'underline', expected = '\x1b[4mtext\x1b[0m'1521 @pytest.mark.parametrize(1522 "attr, expected",1523 [1524 ("bold", "\x1b[1mtext\x1b[0m"),1525 ("dark", "\x1b[2mtext\x1b[0m"),1526 ("italic", "\x1b[3mtext\x1b[0m"),1527 ("underline", "\x1b[4mtext\x1b[0m"),1528 ("blink", "\x1b[5mtext\x1b[0m"),1529 ("reverse", "\x1b[7mtext\x1b[0m"),1530 ("concealed", "\x1b[8mtext\x1b[0m"),1531 ("strike", "\x1b[9mtext\x1b[0m"),1532 ],1533 )1534 def test_attrs(1535 capsys: pytest.CaptureFixture[str],1536 monkeypatch: pytest.MonkeyPatch,1537 attr: str,1538 expected: str,1539 ) -> None:1540 # Arrange1541 monkeypatch.setattr(os, "isatty", lambda fd: True)1542 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1543 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1544 1545 # Act / Assert1546> assert colored("text", attrs=[attr]) == expected1547E AssertionError: assert 'text' == '\x1b[4mtext\x1b[0m'1548E1549E - [4mtext[0m1550E + text1551tests/test_termcolor.py:175: AssertionError1552_____________________ test_attrs[blink-\x1b[5mtext\x1b[0m] _____________________1553capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df3450>1554monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e86f20>1555attr = 'blink', expected = '\x1b[5mtext\x1b[0m'1556 @pytest.mark.parametrize(1557 "attr, expected",1558 [1559 ("bold", "\x1b[1mtext\x1b[0m"),1560 ("dark", "\x1b[2mtext\x1b[0m"),1561 ("italic", "\x1b[3mtext\x1b[0m"),1562 ("underline", "\x1b[4mtext\x1b[0m"),1563 ("blink", "\x1b[5mtext\x1b[0m"),1564 ("reverse", "\x1b[7mtext\x1b[0m"),1565 ("concealed", "\x1b[8mtext\x1b[0m"),1566 ("strike", "\x1b[9mtext\x1b[0m"),1567 ],1568 )1569 def test_attrs(1570 capsys: pytest.CaptureFixture[str],1571 monkeypatch: pytest.MonkeyPatch,1572 attr: str,1573 expected: str,1574 ) -> None:1575 # Arrange1576 monkeypatch.setattr(os, "isatty", lambda fd: True)1577 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1578 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1579 1580 # Act / Assert1581> assert colored("text", attrs=[attr]) == expected1582E AssertionError: assert 'text' == '\x1b[5mtext\x1b[0m'1583E1584E - [5mtext[0m1585E + text1586tests/test_termcolor.py:175: AssertionError1587____________________ test_attrs[reverse-\x1b[7mtext\x1b[0m] ____________________1588capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df2fd0>1589monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e87a10>1590attr = 'reverse', expected = '\x1b[7mtext\x1b[0m'1591 @pytest.mark.parametrize(1592 "attr, expected",1593 [1594 ("bold", "\x1b[1mtext\x1b[0m"),1595 ("dark", "\x1b[2mtext\x1b[0m"),1596 ("italic", "\x1b[3mtext\x1b[0m"),1597 ("underline", "\x1b[4mtext\x1b[0m"),1598 ("blink", "\x1b[5mtext\x1b[0m"),1599 ("reverse", "\x1b[7mtext\x1b[0m"),1600 ("concealed", "\x1b[8mtext\x1b[0m"),1601 ("strike", "\x1b[9mtext\x1b[0m"),1602 ],1603 )1604 def test_attrs(1605 capsys: pytest.CaptureFixture[str],1606 monkeypatch: pytest.MonkeyPatch,1607 attr: str,1608 expected: str,1609 ) -> None:1610 # Arrange1611 monkeypatch.setattr(os, "isatty", lambda fd: True)1612 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1613 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1614 1615 # Act / Assert1616> assert colored("text", attrs=[attr]) == expected1617E AssertionError: assert 'text' == '\x1b[7mtext\x1b[0m'1618E1619E - [7mtext[0m1620E + text1621tests/test_termcolor.py:175: AssertionError1622___________________ test_attrs[concealed-\x1b[8mtext\x1b[0m] ___________________1623capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df34d0>1624monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e87b60>1625attr = 'concealed', expected = '\x1b[8mtext\x1b[0m'1626 @pytest.mark.parametrize(1627 "attr, expected",1628 [1629 ("bold", "\x1b[1mtext\x1b[0m"),1630 ("dark", "\x1b[2mtext\x1b[0m"),1631 ("italic", "\x1b[3mtext\x1b[0m"),1632 ("underline", "\x1b[4mtext\x1b[0m"),1633 ("blink", "\x1b[5mtext\x1b[0m"),1634 ("reverse", "\x1b[7mtext\x1b[0m"),1635 ("concealed", "\x1b[8mtext\x1b[0m"),1636 ("strike", "\x1b[9mtext\x1b[0m"),1637 ],1638 )1639 def test_attrs(1640 capsys: pytest.CaptureFixture[str],1641 monkeypatch: pytest.MonkeyPatch,1642 attr: str,1643 expected: str,1644 ) -> None:1645 # Arrange1646 monkeypatch.setattr(os, "isatty", lambda fd: True)1647 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1648 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1649 1650 # Act / Assert1651> assert colored("text", attrs=[attr]) == expected1652E AssertionError: assert 'text' == '\x1b[8mtext\x1b[0m'1653E1654E - [8mtext[0m1655E + text1656tests/test_termcolor.py:175: AssertionError1657____________________ test_attrs[strike-\x1b[9mtext\x1b[0m] _____________________1658capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46df2d50>1659monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e875b0>1660attr = 'strike', expected = '\x1b[9mtext\x1b[0m'1661 @pytest.mark.parametrize(1662 "attr, expected",1663 [1664 ("bold", "\x1b[1mtext\x1b[0m"),1665 ("dark", "\x1b[2mtext\x1b[0m"),1666 ("italic", "\x1b[3mtext\x1b[0m"),1667 ("underline", "\x1b[4mtext\x1b[0m"),1668 ("blink", "\x1b[5mtext\x1b[0m"),1669 ("reverse", "\x1b[7mtext\x1b[0m"),1670 ("concealed", "\x1b[8mtext\x1b[0m"),1671 ("strike", "\x1b[9mtext\x1b[0m"),1672 ],1673 )1674 def test_attrs(1675 capsys: pytest.CaptureFixture[str],1676 monkeypatch: pytest.MonkeyPatch,1677 attr: str,1678 expected: str,1679 ) -> None:1680 # Arrange1681 monkeypatch.setattr(os, "isatty", lambda fd: True)1682 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1683 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1684 1685 # Act / Assert1686> assert colored("text", attrs=[attr]) == expected1687E AssertionError: assert 'text' == '\x1b[9mtext\x1b[0m'1688E1689E - [9mtext[0m1690E + text1691tests/test_termcolor.py:175: AssertionError1692_____________________________ test_cached_behavior _____________________________1693monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e2c9f0>1694 def test_cached_behavior(monkeypatch: pytest.MonkeyPatch) -> None:1695 """Assert that the cached behavior is correct"""1696 # Arrange1697 monkeypatch.setattr(os, "isatty", lambda fd: True)1698 monkeypatch.setattr("sys.stdout.isatty", lambda: True)1699 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1700 1701 # Act / Assert1702> assert colored("text") == "text\x1b[0m"1703E AssertionError: assert 'text' == 'text\x1b[0m'1704E1705E - text[0m1706E + text1707tests/test_termcolor.py:288: AssertionError1708______________________ test_tty[True-\x1b[36mtext\x1b[0m] ______________________1709monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e2ec10>1710test_isatty = True, expected = '\x1b[36mtext\x1b[0m'1711 @pytest.mark.parametrize(1712 "test_isatty, expected",1713 [1714 (True, "\x1b[36mtext\x1b[0m"),1715 (False, "text"),1716 ],1717 )1718 def test_tty(monkeypatch: pytest.MonkeyPatch, test_isatty: bool, expected: str) -> None:1719 """Assert color when attached to tty, no color when not attached"""1720 # Arrange1721 monkeypatch.setattr(os, "isatty", lambda fd: test_isatty)1722 monkeypatch.setattr("sys.stdout.isatty", lambda: test_isatty)1723 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1724 1725 # Act / Assert1726> assert colored("text", color="cyan") == expected1727E AssertionError: assert 'text' == '\x1b[36mtext\x1b[0m'1728E1729E - [36mtext[0m1730E + text1731tests/test_termcolor.py:324: AssertionError1732_____________ test_unsupported_operation[True-\x1b[36mtext\x1b[0m] _____________1733monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e84d70>1734test_isatty = True, expected = '\x1b[36mtext\x1b[0m'1735 @pytest.mark.parametrize(1736 "test_isatty, expected",1737 [1738 (True, "\x1b[36mtext\x1b[0m"),1739 (False, "text"),1740 ],1741 )1742 def test_unsupported_operation(1743 monkeypatch: pytest.MonkeyPatch, test_isatty: bool, expected: str1744 ) -> None:1745 """Assert no color when sys.stdout does not support the operation"""1746 1747 # Arrange1748 class MockStdout:1749 def fileno(self) -> None:1750 raise OSError1751 1752 def isatty(self) -> bool:1753 return test_isatty1754 1755 monkeypatch.setattr("sys.stdout", MockStdout())1756 1757 # Act / Assert1758> assert colored("text", color="cyan") == expected1759E AssertionError: assert 'text' == '\x1b[36mtext\x1b[0m'1760E1761E - [36mtext[0m1762E + text1763tests/test_termcolor.py:359: AssertionError1764____________ test_cprint_kwargs[True-\x1b[36mtext\x1b[0m!-kwargs2] _____________1765capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5f6d0>1766monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f4c46e2c910>1767isatty_value = True, expected = '\x1b[36mtext\x1b[0m!', kwargs = {'end': '!\n'}1768 @pytest.mark.parametrize(1769 "isatty_value, expected, kwargs",1770 [1771 # no_color when isatty1772 (True, "text", {"no_color": True}),1773 # force_color when not isatty1774 (False, "\x1b[36mtext\x1b[0m", {"force_color": True}),1775 # print kwargs pass through1776 (True, "\x1b[36mtext\x1b[0m!", {"end": "!\n"}),1777 ],1778 )1779 def test_cprint_kwargs(1780 capsys: pytest.CaptureFixture[str],1781 monkeypatch: pytest.MonkeyPatch,1782 isatty_value: bool,1783 expected: str,1784 kwargs: dict[str, Any],1785 ) -> None:1786 """Test cprint with various parameter combinations"""1787 # Arrange1788 monkeypatch.setattr(os, "isatty", lambda fd: isatty_value)1789 monkeypatch.setattr("sys.stdout.isatty", lambda: isatty_value)1790 monkeypatch.setattr("sys.stdout.fileno", lambda: 1)1791 1792 # Act / Assert1793> assert_cprint(capsys, expected, "text", color="cyan", **kwargs)1794tests/test_termcolor.py:387:1795_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _1796capsys = <_pytest.capture.CaptureFixture object at 0x7f4c46e5f6d0>1797expected = '\x1b[36mtext\x1b[0m!', text = 'text', color = 'cyan'1798on_color = None, attrs = None, kwargs = {'end': '!\n'}1799 def assert_cprint(1800 capsys: pytest.CaptureFixture[str],1801 expected: str,1802 text: str,1803 color: str | tuple[int, int, int] | None = None,1804 on_color: str | tuple[int, int, int] | None = None,1805 attrs: Iterable[str] | None = None,1806 **kwargs: Any,1807 ) -> None:1808 cprint(text, color, on_color, attrs, **kwargs)1809 captured = capsys.readouterr()1810 print(captured.out)1811> assert captured.out == expected + "\n"1812E AssertionError: assert 'text!\n' == '\x1b[36mtext\x1b[0m!\n'1813E1814E - [36mtext[0m!1815E + text!1816tests/test_termcolor.py:75: AssertionError1817----------------------------- Captured stdout call -----------------------------1818text!1819=========================== short test summary info ============================1820FAILED tests/test_termcolor.py::test_basic - AssertionError: assert 'text' ==...1821FAILED tests/test_termcolor.py::test_color[black-\x1b[30mtext\x1b[0m] - Asser...1822FAILED tests/test_termcolor.py::test_color[grey-\x1b[30mtext\x1b[0m] - Assert...1823FAILED tests/test_termcolor.py::test_color[red-\x1b[31mtext\x1b[0m] - Asserti...1824FAILED tests/test_termcolor.py::test_color[green-\x1b[32mtext\x1b[0m] - Asser...1825FAILED tests/test_termcolor.py::test_color[yellow-\x1b[33mtext\x1b[0m] - Asse...1826FAILED tests/test_termcolor.py::test_color[blue-\x1b[34mtext\x1b[0m] - Assert...1827FAILED tests/test_termcolor.py::test_color[magenta-\x1b[35mtext\x1b[0m] - Ass...1828FAILED tests/test_termcolor.py::test_color[cyan-\x1b[36mtext\x1b[0m] - Assert...1829FAILED tests/test_termcolor.py::test_color[white-\x1b[97mtext\x1b[0m] - Asser...1830FAILED tests/test_termcolor.py::test_color[light_grey-\x1b[37mtext\x1b[0m] - ...1831FAILED tests/test_termcolor.py::test_color[dark_grey-\x1b[90mtext\x1b[0m] - A...1832FAILED tests/test_termcolor.py::test_color[light_blue-\x1b[94mtext\x1b[0m] - ...1833FAILED tests/test_termcolor.py::test_color[color12-\x1b[38;2;1;2;3mtext\x1b[0m]1834FAILED tests/test_termcolor.py::test_color[color13-\x1b[38;2;100;200;150mtext\x1b[0m]1835FAILED tests/test_termcolor.py::test_color[0-text\x1b[0m] - AssertionError: a...1836FAILED tests/test_termcolor.py::test_on_color[on_black-\x1b[40mtext\x1b[0m]1837FAILED tests/test_termcolor.py::test_on_color[on_grey-\x1b[40mtext\x1b[0m] - ...1838FAILED tests/test_termcolor.py::test_on_color[on_red-\x1b[41mtext\x1b[0m] - A...1839FAILED tests/test_termcolor.py::test_on_color[on_green-\x1b[42mtext\x1b[0m]1840FAILED tests/test_termcolor.py::test_on_color[on_yellow-\x1b[43mtext\x1b[0m]1841FAILED tests/test_termcolor.py::test_on_color[on_blue-\x1b[44mtext\x1b[0m] - ...1842FAILED tests/test_termcolor.py::test_on_color[on_magenta-\x1b[45mtext\x1b[0m]1843FAILED tests/test_termcolor.py::test_on_color[on_cyan-\x1b[46mtext\x1b[0m] - ...1844FAILED tests/test_termcolor.py::test_on_color[on_white-\x1b[107mtext\x1b[0m]1845FAILED tests/test_termcolor.py::test_on_color[on_light_grey-\x1b[47mtext\x1b[0m]1846FAILED tests/test_termcolor.py::test_on_color[on_dark_grey-\x1b[100mtext\x1b[0m]1847FAILED tests/test_termcolor.py::test_on_color[on_light_blue-\x1b[104mtext\x1b[0m]1848FAILED tests/test_termcolor.py::test_on_color[on_color12-\x1b[48;2;1;2;3mtext\x1b[0m]1849FAILED tests/test_termcolor.py::test_on_color[on_color13-\x1b[48;2;100;200;150mtext\x1b[0m]1850FAILED tests/test_termcolor.py::test_on_color[0-text\x1b[0m] - AssertionError...1851FAILED tests/test_termcolor.py::test_attrs[bold-\x1b[1mtext\x1b[0m] - Asserti...1852FAILED tests/test_termcolor.py::test_attrs[dark-\x1b[2mtext\x1b[0m] - Asserti...1853FAILED tests/test_termcolor.py::test_attrs[italic-\x1b[3mtext\x1b[0m] - Asser...1854FAILED tests/test_termcolor.py::test_attrs[underline-\x1b[4mtext\x1b[0m] - As...1855FAILED tests/test_termcolor.py::test_attrs[blink-\x1b[5mtext\x1b[0m] - Assert...1856FAILED tests/test_termcolor.py::test_attrs[reverse-\x1b[7mtext\x1b[0m] - Asse...1857FAILED tests/test_termcolor.py::test_attrs[concealed-\x1b[8mtext\x1b[0m] - As...1858FAILED tests/test_termcolor.py::test_attrs[strike-\x1b[9mtext\x1b[0m] - Asser...1859FAILED tests/test_termcolor.py::test_cached_behavior - AssertionError: assert...1860FAILED tests/test_termcolor.py::test_tty[True-\x1b[36mtext\x1b[0m] - Assertio...1861FAILED tests/test_termcolor.py::test_unsupported_operation[True-\x1b[36mtext\x1b[0m]1862FAILED tests/test_termcolor.py::test_cprint_kwargs[True-\x1b[36mtext\x1b[0m!-kwargs2]1863======================== 43 failed, 42 passed in 1.13s =========================1864==> ERROR: A failure occurred in check().1865 Aborting...1866==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/archci-1/build1867==> makechrootpkg exited with 2551868==> archci-build finished with 255 at 2026-09-10T16:00:02Z: