pytest-sugar icon indicating copy to clipboard operation
pytest-sugar copied to clipboard

Extra empty line between tests on Windows in verbose mode

Open thorstenkampe opened this issue 5 years ago • 4 comments

> pytest -v
Test session starts (platform: win32, Python 3.8.3, pytest 5.4.3, pytest-sugar 0.9.3)
cachedir: .pytest_cache
rootdir: C:\data\flash drive\cygwin\home\thorsten\python\modules
plugins: sugar-0.9.3
collecting ...
 test_toolbox.py::test_assert_installed ✓       3% ▍

 test_toolbox.py::Test_get_version.test_1 ✓     6% ▋

 test_toolbox.py::Test_get_version.test_2 ✓     9% ▉

 test_toolbox.py::Test_truncate.test_1 ✓       12% █▍

 test_toolbox.py::Test_truncate.test_2 ✓       16% █▋

in comparison, plain pytest:

> pytest -v -p no:sugar
= test session starts ==platform win32 -- Python 3.8.3, pytest-5.4.3, py-1.8.1, pluggy-0.13.1 -- f:\scoop\apps\python\current\python.exe
cachedir: .pytest_cache
rootdir: C:\data\flash drive\cygwin\home\thorsten\python\modules
collected 32 items

test_toolbox.py::test_assert_installed PASSED                [  3%]
test_toolbox.py::Test_get_version::test_1 PASSED             [  6%]
test_toolbox.py::Test_get_version::test_2 PASSED             [  9%]
test_toolbox.py::Test_truncate::test_1 PASSED                [ 12%]
test_toolbox.py::Test_truncate::test_2 PASSED                [ 15%]

thorstenkampe avatar Jun 07 '20 14:06 thorstenkampe

Works for me (with Windows Terminal). Maybe it's your terminal?

Teemu avatar Aug 25 '20 17:08 Teemu

Empty lines are displayed in ConEmu and the standard Windows cmd terminal (conhost). In the new Windows Terminal (WindowsTerminal.exe) they are not displayed. Please reopen this issue.

thorstenkampe avatar Aug 25 '20 18:08 thorstenkampe

I am not sure if this is worth debugging if it works for 99% terminals. I am totally open if anyone wants to do a proper investigation why this happens with ConEmu.

Teemu avatar Aug 25 '20 18:08 Teemu

As I wrote in my last comment, the issue is visible in the standard windows conhost terminal. That means it does not work for 99% of terminals.

thorstenkampe avatar Aug 25 '20 18:08 thorstenkampe