New issue 459: doctest-modules + pyreadline means default color becomes black
https://bitbucket.org/hpk42/pytest/issue/459/doctest-modules-pyreadline-means-default

Jason R. Coombs:

Slightly related to #399, but also different.

![color.jpg](https://bitbucket.org/repo/Kd84B/images/3291019784-color.jpg)

Note that the default text color goes black even after the pytest process exits.

Thusfar, I've only been able to replicate the problem on Python 3.4.0b3. I have 
not been able to replicate the issue on Python 3.3. The problem does occur on a 
vanilla cmd.exe process as well as an ANSI terminal. The problem only occurs if 
pyreadline is installed and if doctests are invoked. Remove pyreadline or 
eliminate or disable doctests, and the process completes without any color 
issues. The presence or absence of colorama has no effect (invoking "py -m 
pytest" allows the tests to run without requiring colorama to be installed).

I've tried disabling much of the doctest output-related functionality in 
_pytest.doctest, but that had no effect.

I've completely cleaned my environment so there's no funny business with other 
libraries:

```
>>> sys.path
['', 'c:\\python\\lib\\site-packages\\setuptools-2.2-py3.4.egg', 
'c:\\users\\jaraco\\projects\\public\\pytest', 
'c:\\python\\lib\\site-packages\\colorama-0.2.7-py3.4.egg', 
'c:\\python\\lib\\site-packages\\py-1.4.20-py3.4.egg', 
'c:\\python\\lib\\site-packages\\pyreadline-2.0-py3.4-win-amd64.egg', 
'C:\\WINDOWS\\SYSTEM32\\python34.zip', 'c:\\python\\DLLs', 'c:\\python\\lib', 
'c:\\python', 
'C:\\Users\\jaraco\\AppData\\Roaming\\Python\\Python34\\site-packages', 
'c:\\python\\lib\\site-packages']
```

So the problem appears to be associated with Python 3.4.

Would someone please try replicating this issue in Python 3.4 in your Windows 
environment?


_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
https://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to