Opened 5 weeks ago

Closed 4 weeks ago

#9381 defect closed fixed (fixed)

Intermittent ConnectBindError from twisted.internet.test.test_tcp.TCP4ClientTestsBuilder_PollReactorTests.test_addresses

Reported by: Jean-Paul Calderone Owned by: Jean-Paul Calderone <exarkun@…>
Priority: normal Milestone:
Component: core Keywords: tests
Cc: Branch:


Traceback (most recent call last):
  File "/buildslave/fedora25-py3.5-coverage/Twisted/build/py35-alldeps-withcov-posix/lib/python3.5/site-packages/twisted/internet/test/", line 641, in test_addresses
twisted.trial.unittest.FailTest: Traceback (most recent call last):
Failure: twisted.internet.error.ConnectBindError: Couldn't bind: 98: Address already in use.


Change History (4)

comment:1 Changed 5 weeks ago by Jean-Paul Calderone

Keywords: review added

comment:4 Changed 4 weeks ago by Jean-Paul Calderone <exarkun@…>

Owner: set to Jean-Paul Calderone <exarkun@…>
Resolution: fixed
Status: newclosed

In 0dd344d4:

Merge pull request #963 from twisted/9381.test_addresses-connectbinderror

Author: exarkun
Reviewer: markrwilliams
Fixes: ticket:9381

Handle ConnectBindError in a reactor test suite test and retry with a different port number. Sometimes this is necessary because the "free" port discovered early has become not-free by the time the test gets around to trying to bind it.

Note: See TracTickets for help on using tickets.