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_pathod.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_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): |