testing-cabal / testtools

Testtools - tasteful testing for python
https://testtools.readthedocs.io/en/latest/
Other
95 stars 88 forks source link

Test streams are uselessly verbose #251

Closed therve closed 7 years ago

therve commented 7 years ago

I have an issue with testrepository, where test repositories are very big (around the 25M+). I looked at the content, and the vast majority is made of stuff like this:

Content-Type: text/plain;charset=utf8 pythonlogging:'something' 0

My test suite used a lot of LoggerFixture, and I believe that's the cause of it. But it seems I get an event even if the logger doesn't get anything, which seems like a waste. We shouldn't add the test details if there isn't any data to log.

I'm opening the issue in testtools because I think it's where I can fix it.

therve commented 7 years ago

https://github.com/testing-cabal/testtools/pull/252 should fix it.