1
0
mirror of https://github.com/django/django.git synced 2024-12-31 21:46:05 +00:00

Refs #26011 -- Fixed AttributeError in test_port_bind test.

This commit is contained in:
Marten Kenbeek 2016-01-02 16:25:53 +01:00 committed by Tim Graham
parent e8c34bb832
commit b551eda9c5

View File

@ -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