[pytest-dev] Flaky tests

Florian Bruhin me at the-compiler.org
Sun Aug 9 10:56:26 CEST 2015

* Anatoly Bubenkov <bubenkoff at gmail.com> [2015-08-09 00:54:20 +0000]:
> The big downside of that plugin's approach, is that only 'call' phase is
> retried, while 'setup' is not re-executed and so all function-scoped
> fixtures stay as is from previous try.
> This is not acceptable if you use fixtures intensively of course.
> I created an issue where I have a snippet how it could work
> https://github.com/box/flaky/issues/53
> But then realized that it doesn't work properly still: when it's the only
> test collected which we're going to retry, all fixtures, including
> session-scoped are being resetup as well!
> Then looked more and couldn't find any good solutions to actually very
> simple question: how do i rerun the test in the same test run?
> Any help is appreciated. I think making that plugin work or even making it
> available in the core would be a great improvement.
> Thanks!

This sounds like another possible usecase for this issue:


Mind adding a comment there explaining your usecase?


http://www.the-compiler.org | me at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20150809/056d0ea8/attachment.sig>

More information about the pytest-dev mailing list