Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Port twisted.deferredruntest to Twisted >= 15.1.0 #149
Conversation
|
Does it still work with older supported Twisted releases? |
|
(I mean, I see the conditional code, but we don't strictly know). I think to merge this we probably want a new entry in the test matrix to run old twisted |
cjwatson
commented
Aug 24, 2015
|
It worked for me back to at least 14.0.0, but I take your point. How would I go about extending the test matrix? Is that even something in my power to do? |
added some commits
Aug 24, 2015
cjwatson
commented
Aug 24, 2015
|
OK, I worked it out. Could you have a look at this? |
rbtcollins
reviewed
Aug 26, 2015
| + - python: "2.6" | ||
| + env: TWISTED_REQ="Twisted==13.0.0" | ||
| + - python: "2.6" | ||
| + env: TWISTED_REQ="Twisted==15.2.0" |
rbtcollins
reviewed
Aug 26, 2015
| + - python: "2.7" | ||
| + env: TWISTED_REQ="Twisted==13.0.0" | ||
| + - python: "2.7" | ||
| + env: TWISTED_REQ="Twisted==15.2.0" |
rbtcollins
reviewed
Aug 26, 2015
| + - python: "pypy" | ||
| + env: TWISTED_REQ="Twisted==13.0.0" | ||
| + - python: "pypy" | ||
| + env: TWISTED_REQ="Twisted==15.2.0" |
|
Do we need a test of the new global log observer functionality? Perhaps we should also file a ticket in twisted on the privates we're having to use. |
cjwatson
commented
Sep 9, 2015
|
My feeling is that the fact that a slew of tests were failing without this change is probably sufficient - that is, the current deferredruntest tests already covered the basic function of running with different log observers, it's just that that needs different implementation details with current Twisted. |
|
I have filed https://twistedmatrix.com/trac/ticket/8048 about the API being non-public. |
|
Merged, thanks! |
cjwatson commentedAug 19, 2015
Twisted 15.1.0 removes the compatibility import of _LogObserver in
twisted.trial.unittest. This is unfortunate for us, but it's what we
get for using an internal interface. It at least still exists in
twisted.trial._synctest, so we can get it from there.
Twisted 15.2.0 adds the new twisted.logger framework, which requires a
slight adjustment to run_with_log_observers. There's no longer a
supported interface to get hold of all log observers, but since we're
already using an internal interface (see above), what's one more?
This passes "make check" with the current release, Twisted 15.3.0.