From 85aa5da6e3b7d811d316ed692ecd40e5442abe02 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 28 May 2016 19:31:43 -0700 Subject: fix tests --- test/netlib/http/http2/test_connections.py | 4 ++-- test/netlib/http/test_request.py | 2 +- test/netlib/http/test_response.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test/netlib/http') diff --git a/test/netlib/http/http2/test_connections.py b/test/netlib/http/http2/test_connections.py index 9312576f..139d4fc1 100644 --- a/test/netlib/http/http2/test_connections.py +++ b/test/netlib/http/http2/test_connections.py @@ -460,7 +460,7 @@ class TestAssembleRequest(object): b'', b'/', b"HTTP/2.0", - None, + (), None, )) assert len(bytes) == 1 @@ -475,7 +475,7 @@ class TestAssembleRequest(object): b'', b'/', b"HTTP/2.0", - None, + (), None, ) req.stream_id = 0x42 diff --git a/test/netlib/http/test_request.py b/test/netlib/http/test_request.py index fae7aefe..c03db339 100644 --- a/test/netlib/http/test_request.py +++ b/test/netlib/http/test_request.py @@ -13,7 +13,7 @@ class TestRequestData(object): with raises(ValueError): treq(headers="foobar") - assert isinstance(treq(headers=None).headers, Headers) + assert isinstance(treq(headers=()).headers, Headers) class TestRequestCore(object): diff --git a/test/netlib/http/test_response.py b/test/netlib/http/test_response.py index 63c976a2..5eac2a15 100644 --- a/test/netlib/http/test_response.py +++ b/test/netlib/http/test_response.py @@ -15,7 +15,7 @@ class TestResponseData(object): with raises(ValueError): tresp(headers="foobar") - assert isinstance(tresp(headers=None).headers, Headers) + assert isinstance(tresp(headers=()).headers, Headers) class TestResponseCore(object): -- cgit v1.2.3