Skip to content

Commit 7648321

Browse files
Fixed testing against Pytest 5.1
As of Pytest 5.1.0 > pytest.raises and pytest.warns no longer support strings as the > second argument https://docs.pytest.org/en/latest/changelog.html#removals Fixes: #106 Signed-off-by: Stanislav Levin <[email protected]>
1 parent 35dbb5a commit 7648321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/test_gateway.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ def test_deprecation(recwarn, monkeypatch):
3636
execnet.PopenGateway().exit()
3737
assert recwarn.pop(DeprecationWarning)
3838
monkeypatch.setattr(socket, "socket", fails)
39-
py.test.raises(Exception, 'execnet.SocketGateway("localhost", 8811)')
39+
py.test.raises(Exception, execnet.SocketGateway, "localhost", 8811)
4040
assert recwarn.pop(DeprecationWarning)
4141
monkeypatch.setattr(subprocess, "Popen", fails)
42-
py.test.raises(Exception, 'execnet.SshGateway("not-existing")')
42+
py.test.raises(Exception, execnet.SshGateway, "not-existing")
4343
assert recwarn.pop(DeprecationWarning)
4444

4545

0 commit comments

Comments
 (0)