Refs #26011 -- Fixed AttributeError in test_port_bind test.
This commit is contained in:
parent
e8c34bb832
commit
b551eda9c5
|
@ -188,7 +188,7 @@ class LiveServerPort(LiveServerBase):
|
||||||
try:
|
try:
|
||||||
TestCase.setUpClass()
|
TestCase.setUpClass()
|
||||||
except socket.error as e:
|
except socket.error as e:
|
||||||
if e.ernrno == errno.EADDRINUSE:
|
if e.errno == errno.EADDRINUSE:
|
||||||
# We're out of ports, LiveServerTestCase correctly fails with
|
# We're out of ports, LiveServerTestCase correctly fails with
|
||||||
# a socket error.
|
# a socket error.
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue