diff options
author | Maximilian Hils <git@maximilianhils.com> | 2017-02-09 10:42:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-09 10:42:55 +0100 |
commit | 4cf6047a4eaf0d6f314ba5163ebda604c8836c9d (patch) | |
tree | 10447e8bf5d9ca3a53c03ed48a371662dfc52218 /test/pathod/test_language_http2.py | |
parent | 28c0596742674dd59df317a91389f3826b7d5e66 (diff) | |
parent | 7a9d40817ce0a97317b7940f7da2bb64da02eb51 (diff) | |
download | mitmproxy-4cf6047a4eaf0d6f314ba5163ebda604c8836c9d.tar.gz mitmproxy-4cf6047a4eaf0d6f314ba5163ebda604c8836c9d.tar.bz2 mitmproxy-4cf6047a4eaf0d6f314ba5163ebda604c8836c9d.zip |
Merge pull request #1999 from Kriechi/coverage++
pytest.raises: shim new API
Diffstat (limited to 'test/pathod/test_language_http2.py')
-rw-r--r-- | test/pathod/test_language_http2.py | 4 |
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): |