Opened 16 years ago

Closed 14 years ago

#62 closed defect (fixed)

tests fail with pyOpenSSL-0.7 + Twisted-8.1.0

Reported by: Brian Warner Owned by:
Priority: major Milestone: 0.6.0
Component: negotiation Version: 0.2.5
Keywords: Cc:

Description

We identified an incompatibility with pyOpenSSL-0.7 (the most recent release which hit debian/sid about a week ago). The symptom is that foolscap unit tests fail with "unclean reactor" errors and timers that are still running at the end of the test suite.

The current recommended workaround is to downgrade to pyOpenSSL-0.6 .

JP understands the problem: Twisted ticket #3218 exists to track it.

Change History (4)

comment:1 Changed 16 years ago by Brian Warner

Zooko says that it looks like the problem only exists on the selectreactor, so another workaround is to use the pollreactor instead. That means:

  • trial --reactor=poll foolscap
  • twistd --reactor=poll -y foo.tac

I've confirmed that this allows the trial unit tests to pass, and also the tahoe unit tests.

comment:2 Changed 16 years ago by Brian Warner

Tahoe has been changed to use --reactor=poll (unless it's running on windows).

comment:3 Changed 16 years ago by Brian Warner

Summary: tests fail with pyOpenSSL-0.7tests fail with pyOpenSSL-0.7 + Twisted-8.1.0

Twisted has fixed the problem upstream, in twisted-trunk-r24473: http://twistedmatrix.com/trac/ticket/3218

I've confirmed that foolscap tests pass when run (with the default selectreactor) against twisted trunk r24575.

Now we just need to wait for them to make a release..

comment:4 Changed 14 years ago by Brian Warner

Milestone: undecided0.6.0
Resolution: fixed
Status: newclosed

This fix was released in Twisted-8.2.0, and our test__versions warns the user when running unit tests against an older version, so I think this can finally by closed.

Note: See TracTickets for help on using tickets.