[issue29048] Coverage influence tests, make some of them fail

Patrik Iselind report at bugs.python.org
Sat Dec 24 07:05:36 EST 2016


Patrik Iselind added the comment:

I've been looking into test_exceptions, why it fails. The reason seems to be that when the tests are executed under coverage, then they get nothing on the line that says the following in test_unraisable().

```python
report = stderr.getvalue()
```
So coverage steal strerr in this case, and the test's thunder.

A way to get around this would be to not let the test rely in stderr but instead catch the exception and unfold it as a string for testing.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29048>
_______________________________________


More information about the Python-bugs-list mailing list