* Nikolaus Rath <nikol...@rath.org> [2016-06-10 09:26:34 -0700]:
> On Jun 10 2016, Florian Bruhin <me-j2duszcpoy900tdglc2...@public.gmane.org> 
> wrote:
> > pytest-catchlog
> >     [...]
> >     - has no way to fail tests on unexpected error logging messages
> 
> Agreed. I'm extended it with code like
> https://bitbucket.org/nikratio/python-llfuse/src/tip/test/pytest_checklogs.py,
> but I think there's no way to ever make this pretty without some changes
> to pytest.

Not to pytest, but to pytest-catchlog I think?

I haven't taken a closer look at your code yet, but I have something
like this too:

https://github.com/The-Compiler/qutebrowser/blob/master/tests/helpers/logfail.py
https://github.com/The-Compiler/qutebrowser/blob/master/tests/helpers/test_logfail.py

The main problem is that it doesn't work with the git master of
pytest-catchlog and I couldn't get it to work when I tried last time.

Florian

-- 
http://www.the-compiler.org | m...@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/

Attachment: signature.asc
Description: PGP signature

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

Reply via email to