summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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