Skip to content

Commit f14ceaa

Browse files
authored
Fixed testing against Pytest 5.1 (#107)
Fixed testing against Pytest 5.1
2 parents 35dbb5a + 7648321 commit f14ceaa

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)