summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarten Kenbeek <marten.knbk@gmail.com>2016-01-02 16:25:53 +0100
committerTim Graham <timograham@gmail.com>2016-01-02 11:03:24 -0500
commitb551eda9c5670e70b8f4bc7569e46fc617d87ff8 (patch)
treeaf62f36e6109588d315cb08447b6cc2daec89b7d
parente8c34bb832e88a3dec8c5f3f687bbbf62afb857c (diff)
Refs #26011 -- Fixed AttributeError in test_port_bind test.
-rw-r--r--tests/servers/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/servers/tests.py b/tests/servers/tests.py
index 18102ff509..39faba2023 100644
--- a/tests/servers/tests.py
+++ b/tests/servers/tests.py
@@ -188,7 +188,7 @@ class LiveServerPort(LiveServerBase):
try:
TestCase.setUpClass()
except socket.error as e:
- if e.ernrno == errno.EADDRINUSE:
+ if e.errno == errno.EADDRINUSE:
# We're out of ports, LiveServerTestCase correctly fails with
# a socket error.
return