Opened 12 years ago

Closed 12 years ago

#2256 defect closed duplicate (duplicate)

test_tcp.HalfClose3TestCase.testReadNotificationRaisesTest fails sometimes on OSX

Reported by: Stephen Thorne Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch:


On OSX, this will fail in anywhere from 1 to 10 test runs. Usually within about 3.

$ trial -u twisted.test.test_tcp.HalfClose3TestCase.testReadNotificationRaisesTest Pass 1
Running 1 tests.
    testReadNotificationRaises ...                                      [ERROR]

[ERROR]: twisted.test.test_tcp.HalfClose3TestCase.testReadNotificationRaises

Traceback (most recent call last):
  File "/Users/stephen/src/Twisted/trunk/twisted/test/", line 1288, in testReadNotificationRaises
    self.f.protocol.readConnectionLost = self.aBug
exceptions.AttributeError: 'NoneType' object has no attribute 'readConnectionLost'
Ran 1 tests in 0.029s

FAILED (errors=1)

Change History (4)

comment:1 Changed 12 years ago by Michael Hudson-Doyle

Works for me (well, it passed 4000 times or so while I was changing a light bulb...).

More details? I'm using Bob's old build of 2.4.1...

comment:2 Changed 12 years ago by Jean-Paul Calderone

This is definitely a real problem. It's a race which is only triggered on some platforms due to ordering issues in the platform TCP/IP stack.

Maybe different versions of OS X interact with this code differently, though? No one said which version of OS X they were using.

comment:3 Changed 12 years ago by Jean-Paul Calderone

Resolution: duplicate
Status: newclosed

This is a duplicate of #1730

comment:4 Changed 8 years ago by <automation>

Owner: Glyph deleted
Note: See TracTickets for help on using tickets.