pytest-dev / pytest-dev/pytest

The display symbol the colors in the error message. Instead of E I get \x1b[1m\x1b[31mE

Open
#4,460 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

platform: windows topic: reporting type: bug
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

I get the error symbol in the conEMU console incorrectly displayed.

In CMD

(venv35) ...pytest_simple_rapid_effectiv\bopytest-code\code\ch4\cache>pip list
Package        Version
-------------- -------
attrs          18.1.0
Click          7.0
colorama       0.3.9
more-itertools 4.1.0
pip            18.1
pluggy         0.6.0
py             1.5.3
pytest         3.5.1
setuptools     39.0.1
six            1.11.0
tinydb         3.11.1
wheel          0.31.0
xlsxwriter     1.0.4

(venv35) ....pytest_simple_rapid_effectiv\bopytest-code\code\ch4\cache>pytest --version
This is pytest version 3.5.1, imported from c:\venv35\lib\site-packages\pytest.py

(venv35) ...pytest_simple_rapid_effectiv\bopytest-code\code\ch4\cache>python
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32

>>> import sys
>>> sys.platform
'win32'
>>>

OS Windows 7 Home Premium SP1 x64

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the pytest error output on Windows 7 in conEMU and CMD using the versions and environment shown in the report. Trace the terminal rendering of the error symbol and color codes; done when the symbol displays correctly without literal escape sequences.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.