New issue 555: AttributeError: '_io.FileIO' object has no attribute 'errors'
https://bitbucket.org/hpk42/pytest/issue/555/attributeerror-_iofileio-object-has-no

Jason R. Coombs:

New in pytest 2.6.0, many setuptools tests are failing thus: 
https://travis-ci.org/jaraco/setuptools/jobs/31453603

In particular, the error occurs with this traceback:

```
c:\python\lib\distutils\log.py:44: in info
    self._log(INFO, msg, args)
c:\python\lib\distutils\log.py:30: in _log
    if stream.errors == 'strict':
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <_pytest.capture.EncodedFile object at 0x0000000005C87128>
name = 'errors'

    def __getattr__(self, name):
>       return getattr(self.buffer, name)
E       AttributeError: '_io.FileIO' object has no attribute 'errors'

c:\python\lib\site-packages\pytest-2.6.0-py3.4.egg\_pytest\capture.py:242: 
AttributeError
```

Using Python 2.x or pytest 2.5.x works around the issue.


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

Reply via email to