[Pytest-commit] Issue #587: type "byte" is incompatible with python 2.5 (hpk42/pytest)

sscarwell issues-reply at bitbucket.org
Mon Sep 8 23:37:27 CEST 2014


New issue 587: type "byte" is incompatible with python 2.5
https://bitbucket.org/hpk42/pytest/issue/587/type-byte-is-incompatible-with-python-25

sscarwell:

The code contains the new keyword/alias **bytes**.
In file ./pytest-2.6.2/_pytest/capture.py(line 355):

```
#!python

    isinstance(res, bytes)
```
The type "bytes" is not recognised by python 2.5.2.


Everywhere else in the code, **bytes** is referenced as **py.builtin.bytes**. 

So I think a fix would be to replace bytes by py.builtin.bytes in capture.py.




More information about the pytest-commit mailing list