Skip to content

Commit 05df015

Browse files
vguillardphilpep
authored andcommitted
Rename adresses in addresses
1 parent 5a86a34 commit 05df015

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/test_modules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ def test_interface(host, family):
687687
# exist
688688
assert host.interface("eth0", family=family).exists
689689
assert not host.interface("does_not_exist", family=family).exists
690-
# adresses
690+
# addresses
691691
addresses = host.interface.default(family).addresses
692692
assert len(addresses) > 0
693693
for add in addresses:

testinfra/modules/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Interface(Module):
2222
2323
Optionally, the protocol family to use can be enforced.
2424
25-
>>> host.interface("eth0", "inet6").adresses
25+
>>> host.interface("eth0", "inet6").addresses
2626
['fe80::e291:f5ff:fe98:6b8c']
2727
"""
2828

testinfra/modules/socket.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def is_listening(self):
9696
9797
>>> host.socket("unix:///var/run/docker.sock").is_listening
9898
False
99-
>>> # This HTTP server listen on all ipv4 adresses but not on ipv6
99+
>>> # This HTTP server listen on all ipv4 addresses but not on ipv6
100100
>>> host.socket("tcp://0.0.0.0:80").is_listening
101101
True
102102
>>> host.socket("tcp://:::80").is_listening
@@ -127,7 +127,7 @@ def is_listening(self):
127127
def clients(self) -> List[Optional[Tuple[str, int]]]:
128128
"""Return a list of clients connected to a listening socket
129129
130-
For tcp and udp sockets a list of pair (adress, port) is returned.
130+
For tcp and udp sockets a list of pair (address, port) is returned.
131131
For unix sockets a list of None is returned (thus you can make a
132132
len() for counting clients).
133133
@@ -254,7 +254,7 @@ def _iter_sockets(self, listening):
254254
elif protocol in ("tcp", "udp"):
255255
host, port = local.rsplit(":", 1)
256256
port = int(port)
257-
# new versions of ss output ipv6 adresses enclosed in []
257+
# new versions of ss output ipv6 addresses enclosed in []
258258
if host and host[0] == "[" and host[-1] == "]":
259259
host = host[1:-1]
260260
else:

0 commit comments

Comments
 (0)