============================= test session starts ============================== platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1 rootdir: /build/python-yaspin/src/yaspin-2.1.0 collected 1963 items tests/test_attrs.py .................................................... [ 2%] ..............................s [ 4%] tests/test_in_out.py sssssss...ss.ss.....ss..ss.......ss...ss.........ss [ 6%] ....ss...........ss.....ss.............ss......ss........sssssssssssssss [ 10%] ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 14%] ssssssssssssssssssssssssssssssssssssssssssssssssss [ 16%] tests/test_attrs.py . [ 16%] tests/test_properties.py . [ 16%] tests/test_in_out.py sssssssssssssssssssssssssssssssssssssssssssssssssss [ 19%] sssssssssssssssssssssssssssssssssssssss [ 21%] tests/test_properties.py . [ 21%] tests/test_in_out.py sssssssssssssssssssssssssssssssssssssssssssssssssss [ 24%] ssssssssssssssssssssssssssssss [ 25%] tests/test_attrs.py . [ 25%] tests/test_properties.py . [ 25%] tests/test_in_out.py sssssssssssssssssssssssssssssssssssssssssssssssssss [ 28%] sssssssssssssssssssss [ 29%] tests/test_attrs.py . [ 29%] tests/test_properties.py . [ 29%] tests/test_in_out.py sssssssssssssssssssssssssssssssssssssssssssssssssss [ 32%] sssssssssssssssssssss [ 33%] tests/test_properties.py . [ 33%] tests/test_in_out.py ......ss............ss..........ss........ss......s [ 35%] s....ss..ssss [ 36%] tests/test_attrs.py . [ 36%] tests/test_properties.py . [ 36%] tests/test_in_out.py ............ss..........ss........ss......ss....ss. [ 39%] .ssss [ 39%] tests/test_attrs.py . [ 39%] tests/test_properties.py . [ 39%] tests/test_in_out.py .....ss.....ss....ss....ss...ss...ss..ss..ss.ss.sss [ 42%] sssss [ 42%] tests/test_properties.py . [ 42%] tests/test_in_out.py .....ss..........ss........ss......ss....ss..ssss [ 44%] tests/test_attrs.py . [ 44%] tests/test_properties.py . [ 44%] tests/test_in_out.py ..........ss........ss......ss....ss..ssss [ 47%] tests/test_attrs.py . [ 47%] tests/test_properties.py . [ 47%] tests/test_in_out.py ....ss....ss...ss...ss..ss..ss.ss.ssssssss [ 49%] tests/test_properties.py . [ 49%] tests/test_in_out.py ....ss........ss......ss....ss..ssss [ 51%] tests/test_attrs.py . [ 51%] tests/test_properties.py . [ 51%] tests/test_in_out.py ........ss......ss....ss..ssss [ 52%] tests/test_attrs.py . [ 52%] tests/test_properties.py . [ 52%] tests/test_in_out.py ...ss...ss..ss..ss.ss.ssssssss [ 54%] tests/test_properties.py . [ 54%] tests/test_in_out.py ...ss......ss....ss..ssss [ 55%] tests/test_attrs.py . [ 55%] tests/test_properties.py . [ 55%] tests/test_in_out.py ......ss....ss..ssss [ 56%] tests/test_attrs.py . [ 57%] tests/test_properties.py . [ 57%] tests/test_in_out.py ..ss..ss.ss.ssssssss [ 58%] tests/test_properties.py . [ 58%] tests/test_in_out.py ..ss....ss..ssss [ 58%] tests/test_attrs.py . [ 58%] tests/test_properties.py . [ 59%] tests/test_in_out.py ....ss..ssss [ 59%] tests/test_attrs.py . [ 59%] tests/test_properties.py . [ 59%] tests/test_in_out.py .ss.ssssssss [ 60%] tests/test_properties.py . [ 60%] tests/test_in_out.py .ss..ssss [ 60%] tests/test_attrs.py . [ 60%] tests/test_properties.py . [ 60%] tests/test_in_out.py ..ssss [ 61%] tests/test_attrs.py . [ 61%] tests/test_properties.py . [ 61%] tests/test_in_out.py ssssss [ 61%] tests/test_properties.py . [ 61%] tests/test_in_out.py ssss [ 61%] tests/test_attrs.py . [ 61%] tests/test_properties.py . [ 62%] tests/test_in_out.py ss [ 62%] tests/test_attrs.py . [ 62%] tests/test_properties.py . [ 62%] tests/test_in_out.py ss [ 62%] tests/test_properties.py . [ 62%] tests/test_in_out.py s [ 62%] tests/test_attrs.py s [ 62%] tests/test_properties.py . [ 62%] tests/test_attrs.py s [ 62%] tests/test_properties.py .. [ 62%] tests/test_attrs.py s [ 62%] tests/test_properties.py .. [ 62%] tests/test_attrs.py .............. [ 63%] tests/test_finalizers.py ................................ [ 65%] tests/test_in_out.py ..................... [ 66%] tests/test_pipes.py . [ 66%] tests/test_in_out.py ........... [ 66%] tests/test_pipes.py . [ 66%] tests/test_in_out.py ............. [ 67%] tests/test_pipes.py . [ 67%] tests/test_in_out.py ......... [ 68%] tests/test_pipes.py . [ 68%] tests/test_in_out.py ........... [ 68%] tests/test_pipes.py . [ 68%] tests/test_in_out.py ......... [ 69%] tests/test_pipes.py . [ 69%] tests/test_in_out.py ............... [ 70%] tests/test_pipes.py . [ 70%] tests/test_in_out.py ... [ 70%] tests/test_pipes.py . [ 70%] tests/test_properties.py .. [ 70%] tests/test_in_out.py ......... [ 70%] tests/test_pipes.py . [ 70%] tests/test_in_out.py ......... [ 71%] tests/test_pipes.py . [ 71%] tests/test_in_out.py ............... [ 72%] tests/test_pipes.py . [ 72%] tests/test_in_out.py ... [ 72%] tests/test_pipes.py . [ 72%] tests/test_properties.py .. [ 72%] tests/test_in_out.py ......... [ 73%] tests/test_pipes.py . [ 73%] tests/test_in_out.py ......... [ 73%] tests/test_pipes.py . [ 73%] tests/test_in_out.py ............... [ 74%] tests/test_pipes.py . [ 74%] tests/test_in_out.py ... [ 74%] tests/test_pipes.py . [ 74%] tests/test_properties.py .. [ 74%] tests/test_in_out.py ......... [ 75%] tests/test_pipes.py . [ 75%] tests/test_in_out.py ......... [ 75%] tests/test_pipes.py . [ 75%] tests/test_in_out.py ............... [ 76%] tests/test_pipes.py . [ 76%] tests/test_in_out.py ... [ 76%] tests/test_pipes.py . [ 76%] tests/test_properties.py .. [ 76%] tests/test_in_out.py ......... [ 77%] tests/test_pipes.py . [ 77%] tests/test_in_out.py ......... [ 77%] tests/test_pipes.py . [ 77%] tests/test_in_out.py ............... [ 78%] tests/test_pipes.py . [ 78%] tests/test_in_out.py ... [ 78%] tests/test_pipes.py . [ 78%] tests/test_properties.py .. [ 78%] tests/test_in_out.py ......... [ 79%] tests/test_pipes.py . [ 79%] tests/test_in_out.py ......... [ 79%] tests/test_pipes.py . [ 79%] tests/test_in_out.py ............... [ 80%] tests/test_pipes.py . [ 80%] tests/test_in_out.py ... [ 80%] tests/test_pipes.py . [ 80%] tests/test_properties.py .. [ 81%] tests/test_in_out.py ......... [ 81%] tests/test_pipes.py . [ 81%] tests/test_in_out.py ......... [ 82%] tests/test_pipes.py . [ 82%] tests/test_in_out.py ............... [ 82%] tests/test_pipes.py . [ 82%] tests/test_in_out.py ... [ 83%] tests/test_pipes.py . [ 83%] tests/test_properties.py .. [ 83%] tests/test_in_out.py ......... [ 83%] tests/test_pipes.py . [ 83%] tests/test_in_out.py ......... [ 84%] tests/test_pipes.py . [ 84%] tests/test_in_out.py ............... [ 85%] tests/test_pipes.py . [ 85%] tests/test_in_out.py ... [ 85%] tests/test_pipes.py . [ 85%] tests/test_properties.py .. [ 85%] tests/test_in_out.py ......... [ 85%] tests/test_pipes.py . [ 85%] tests/test_in_out.py ......... [ 86%] tests/test_pipes.py . [ 86%] tests/test_in_out.py ............... [ 87%] tests/test_pipes.py . [ 87%] tests/test_in_out.py ... [ 87%] tests/test_pipes.py . [ 87%] tests/test_properties.py .. [ 87%] tests/test_in_out.py ....... [ 87%] tests/test_pipes.py . [ 87%] tests/test_in_out.py .F [ 88%] tests/test_properties.py .. [ 88%] tests/test_in_out.py ........... [ 88%] tests/test_pipes.py . [ 88%] tests/test_in_out.py ... [ 88%] tests/test_pipes.py . [ 88%] tests/test_properties.py .. [ 89%] tests/test_in_out.py ....... [ 89%] tests/test_pipes.py . [ 89%] tests/test_in_out.py .. [ 89%] tests/test_properties.py .. [ 89%] tests/test_in_out.py ........... [ 90%] tests/test_pipes.py . [ 90%] tests/test_in_out.py ... [ 90%] tests/test_pipes.py . [ 90%] tests/test_properties.py .. [ 90%] tests/test_in_out.py ...... [ 90%] tests/test_properties.py .. [ 90%] tests/test_in_out.py .. [ 91%] tests/test_properties.py . [ 91%] tests/test_in_out.py . [ 91%] tests/test_pipes.py . [ 91%] tests/test_in_out.py .. [ 91%] tests/test_properties.py .. [ 91%] tests/test_in_out.py . [ 91%] tests/test_pipes.py . [ 91%] tests/test_properties.py ..... [ 91%] tests/test_in_out.py .. [ 91%] tests/test_properties.py .. [ 92%] tests/test_in_out.py ........ [ 92%] tests/test_properties.py ........................... [ 93%] tests/test_signals.py .ss....................... [ 95%] tests/test_spinners.py ................................................. [ 97%] .................................. [ 99%] tests/test_timer.py ...... [ 99%] tests/test_yaspin.py ....... [100%] =================================== FAILURES =================================== ___________________ test_hide_show['non-ascii unicode str'] ____________________ capsys = <_pytest.capture.CaptureFixture object at 0x4003e23490> text = 'Загрузка' request = > def test_hide_show(capsys, text, request): # Setup sp = yaspin() sp.start() # Ensure that sp.stop() will be executed def teardown(): sp.stop() request.addfinalizer(teardown) # # Actual test # sp.hide() # ensure that hidden spinner flag was set assert sp._hide_spin.is_set() out, _ = capsys.readouterr() # ensure that text was cleared with the hide method assert out[-4:] == "\r\033[K" # ``\n`` is required to flush stdout during # the hidden state of the spinner sys.stdout.write("{0}\n".format(text)) out, _ = capsys.readouterr() # cleans stdout from _clear_line and \r out = out.replace("\r\033[K", "") assert isinstance(out, (str, bytes)) assert out[-1] == "\n" if text: > assert out[:-1] == text E AssertionError: assert '\r⠋\x1b[0m Загрузка' == 'Загрузка' E - Загрузка E + E + ⠋ Загрузка tests/test_in_out.py:126: AssertionError ----------------------------- Captured stdout call -----------------------------  --------------------------- Captured stdout teardown ---------------------------  =========================== short test summary info ============================ FAILED tests/test_in_out.py::test_hide_show['non-ascii unicode str'] - Assert... ============ 1 failed, 1248 passed, 714 skipped in 62.24s (0:01:02) ============ ==> ERROR: A failure occurred in check().  Aborting...