http2: fix race-condition in tests

This commit is contained in:
Thomas Kriechbaumer 2016-07-12 19:55:28 +02:00
parent 9267b2b501
commit 3579c6dd43

View File

@ -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: