GNOME Bugzilla – Bug 691646
Fix testsuite with python 2.6
Last modified: 2013-01-14 07:50:14 UTC
Created attachment 233370 [details] [review] pygobject-3.4.2-run-tests-with-old-python.patch It looks like current hacks to make the testsuite run with python 2.6 are not working so well. First, it looks like some people added more code that needs a more recent unittest (assertLessEqual) Second, it looks like the skipUnless hack makes the testsuite return with exit code 1 which is not desirable. So here is a simple patch that makes use of official unittest backport for older python where needed.
Comment on attachment 233370 [details] [review] pygobject-3.4.2-run-tests-with-old-python.patch To be honest I'm not a fan of introducing another dependency (unittest2) which might not even be available everywhere. I'd rather add the missing backwards compat stubs. We won't support Python 2.6 for a long time any more anyway.
Fixed: http://git.gnome.org/browse/pygobject/commit/?id=dc0dafd1f6ca3ebbf04210768a45587387e44551 http://git.gnome.org/browse/pygobject/commit/?id=734979d0c8317201148a7e94a323225fba2d1635 Thanks for the report!
One way or another, if it fixes the testsuite, then that makes me happy. Thanks for handling it quickly.