Page MenuHomePhabricator

unittest2 version conflict in Python 2.6
Closed, ResolvedPublic

Description

The tests in Python 2.6 fail currently because of a version conflict:

The version conflict is strange as in setup.py the unittest2 is not specified explicitly. And version 0.8 was released quite some time ago (about 4 months). On the other hand 1.0.0 was released only 4 days ago. But the first case it happened was only 4 hours ago and not 4 days.

Details

Related Changes in Gerrit:

Event Timeline

XZise raised the priority of this task from to Medium.
XZise updated the task description. (Show Details)
XZise added projects: Pywikibot-tests, Pywikibot.
XZise added subscribers: Unknown Object (MLST), XZise.

Oh the .travis.yml does specify it to be 0.6.0 which was added on Nov 05 in e40c9a4baa9901568b47e6b30e6019d1a51f6a87 because of T74801. So it appears that we need to fix the tests?

I'm currently trying to run the tests with 0.8.0 on travis. I personally use Python 3.4.2 so I'd get such errors and haven't got any. So it might be possible.

Change 195610 had a related patch set uploaded (by XZise):
[FIX] travis: Use unittest2 0.8.0

https://gerrit.wikimedia.org/r/195610

Change 195610 merged by jenkins-bot:
[FIX] travis: Use unittest2 0.8.0

https://gerrit.wikimedia.org/r/195610

XZise claimed this task.
XZise removed a project: Patch-For-Review.
XZise set Security to None.

We now use 0.8.0 because one dependency (websocket-client afaik via streamio_client) demands that so this problem is fixed (though I'd have preferred to use 1.0.0). It seems that the dependency on 0.8.0 for normal installs was removed (issue #156 and d3f4b33b) so in theory we could test using 1.0.0.