From b551eda9c5670e70b8f4bc7569e46fc617d87ff8 Mon Sep 17 00:00:00 2001 From: Marten Kenbeek Date: Sat, 2 Jan 2016 16:25:53 +0100 Subject: [PATCH] Refs #26011 -- Fixed AttributeError in test_port_bind test. --- tests/servers/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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