aboutsummaryrefslogtreecommitdiffstats
path: root/test/pathod/test_language_http2.py
diff options
context:
space:
mode:
authorThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-06 17:48:44 +0100
committerThomas Kriechbaumer <thomas@kriechbaumer.name>2017-02-08 20:04:07 +0100
commit7a9d40817ce0a97317b7940f7da2bb64da02eb51 (patch)
tree10447e8bf5d9ca3a53c03ed48a371662dfc52218 /test/pathod/test_language_http2.py
parent28c0596742674dd59df317a91389f3826b7d5e66 (diff)
downloadmitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.tar.gz
mitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.tar.bz2
mitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.zip
pytest.raises: shim new API
Diffstat (limited to 'test/pathod/test_language_http2.py')
-rw-r--r--test/pathod/test_language_http2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/pathod/test_language_http2.py b/test/pathod/test_language_http2.py
index fdb65a63..4f89adb8 100644
--- a/test/pathod/test_language_http2.py
+++ b/test/pathod/test_language_http2.py
@@ -39,7 +39,7 @@ class TestRequest:
assert req.values(default_settings()) == req.values(default_settings())
def test_nonascii(self):
- with pytest.raises("ascii"):
+ with pytest.raises(Exception, match="ASCII"):
parse_request("get:\xf0")
def test_err(self):
@@ -168,7 +168,7 @@ class TestResponse:
assert res.values(default_settings()) == res.values(default_settings())
def test_nonascii(self):
- with pytest.raises("ascii"):
+ with pytest.raises(Exception, match="ASCII"):
parse_response("200:\xf0")
def test_err(self):