From 3579c6dd43529595ce1a37d96f19a446419c6ee5 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Tue, 12 Jul 2016 19:55:28 +0200 Subject: [PATCH] http2: fix race-condition in tests --- test/mitmproxy/test_protocol_http2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mitmproxy/test_protocol_http2.py b/test/mitmproxy/test_protocol_http2.py index cb7cebca3..a100ac2dd 100644 --- a/test/mitmproxy/test_protocol_http2.py +++ b/test/mitmproxy/test_protocol_http2.py @@ -192,7 +192,7 @@ class TestSimple(_Http2Test): elif isinstance(event, h2.events.RequestReceived): assert (b'client-foo', b'client-bar-1') in event.headers assert (b'client-foo', b'client-bar-2') in event.headers - + elif isinstance(event, h2.events.StreamEnded): import warnings with warnings.catch_warnings(): # Ignore UnicodeWarning: