[pytest-dev] How to add delay before processing captured output
Nikolaus Rath
Nikolaus at rath.org
Wed Feb 17 16:12:12 EST 2016
On Feb 17 2016, Nikolaus Rath <Nikolaus-BTH8mxji4b0 at public.gmane.org> wrote:
> If I explicitly ignore the test failure, I am able to see the full
> captured output. In other words, if
>
> def my_test():
> check_server_response()
>
> becomes
>
> def my_test():
> try:
> check_server_response()
> except:
> time.sleep(1)
> wait
Obviously that should have been "raise", not "wait".
Best,
-Nikolaus
--
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F
»Time flies like an arrow, fruit flies like a Banana.«
More information about the pytest-dev
mailing list