Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra empty line between tests on Windows in verbose mode #198

Open
thorstenkampe opened this issue Jun 7, 2020 · 4 comments
Open

Extra empty line between tests on Windows in verbose mode #198

thorstenkampe opened this issue Jun 7, 2020 · 4 comments
Labels

Comments

@thorstenkampe
Copy link

> 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%]
@Teemu
Copy link
Owner

Teemu commented Aug 25, 2020

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

@Teemu Teemu closed this as completed Aug 25, 2020
@thorstenkampe
Copy link
Author

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.

@Teemu
Copy link
Owner

Teemu commented Aug 25, 2020

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.

@thorstenkampe
Copy link
Author

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.

@Teemu Teemu reopened this Aug 25, 2020
@Teemu Teemu added the bug label Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants