diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-06 17:48:44 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2017-02-08 20:04:07 +0100 |
commit | 7a9d40817ce0a97317b7940f7da2bb64da02eb51 (patch) | |
tree | 10447e8bf5d9ca3a53c03ed48a371662dfc52218 /test/pathod/test_pathod.py | |
parent | 28c0596742674dd59df317a91389f3826b7d5e66 (diff) | |
download | mitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.tar.gz mitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.tar.bz2 mitmproxy-7a9d40817ce0a97317b7940f7da2bb64da02eb51.zip |
pytest.raises: shim new API
Diffstat (limited to 'test/pathod/test_pathod.py')
-rw-r--r-- | test/pathod/test_pathod.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pathod/test_pathod.py b/test/pathod/test_pathod.py index 60ac8072..88480a59 100644 --- a/test/pathod/test_pathod.py +++ b/test/pathod/test_pathod.py @@ -134,7 +134,7 @@ class CommonTests(tservers.DaemonTests): assert len(self.d.log()) == 0 def test_disconnect(self): - with pytest.raises("unexpected eof"): + with pytest.raises(Exception, match="Unexpected EOF"): self.get("202:b@100k:d200") def test_parserr(self): |