From 7a9d40817ce0a97317b7940f7da2bb64da02eb51 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Mon, 6 Feb 2017 17:48:44 +0100 Subject: pytest.raises: shim new API --- test/pathod/test_pathod.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pathod/test_pathod.py') 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): -- cgit v1.2.3