Skip to content

Commit f62afad

Browse files
Merge pull request #169 from pytest-dev/ronny/drop-deprecated
drop deprecated calls
2 parents c15c687 + ed508aa commit f62afad

File tree

4 files changed

+1
-69
lines changed

4 files changed

+1
-69
lines changed

Diff for: CHANGELOG.rst

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* apply pyupgrade --py37-plus
66
* minimal mypy fixes and python2 support code drop
77
* migrate packaging to hatch
8+
* drop deprecated apis of old makegateway names
89

910

1011

Diff for: execnet/__init__.py

-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
(c) 2012, Holger Krekel and others
88
"""
99
from ._version import version as __version__
10-
from .deprecated import PopenGateway
11-
from .deprecated import SocketGateway
12-
from .deprecated import SshGateway
1310
from .gateway_base import DataFormatError
1411
from .gateway_base import dump
1512
from .gateway_base import dumps
@@ -29,9 +26,6 @@
2926

3027
__all__ = [
3128
"__version__",
32-
"PopenGateway",
33-
"SocketGateway",
34-
"SshGateway",
3529
"makegateway",
3630
"set_execmodel",
3731
"HostNotFound",

Diff for: execnet/deprecated.py

-48
This file was deleted.

Diff for: testing/test_gateway.py

-15
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,6 @@
2727
)
2828

2929

30-
def fails(*args, **kwargs):
31-
0 / 0
32-
33-
34-
def test_deprecation(recwarn, monkeypatch):
35-
execnet.PopenGateway().exit()
36-
assert recwarn.pop(DeprecationWarning)
37-
monkeypatch.setattr(socket, "socket", fails)
38-
pytest.raises(Exception, execnet.SocketGateway, "localhost", 8811)
39-
assert recwarn.pop(DeprecationWarning)
40-
monkeypatch.setattr(subprocess, "Popen", fails)
41-
pytest.raises(Exception, execnet.SshGateway, "not-existing")
42-
assert recwarn.pop(DeprecationWarning)
43-
44-
4530
class TestBasicGateway:
4631
def test_correct_setup(self, gw):
4732
assert gw.hasreceiver()

0 commit comments

Comments
 (0)