admin_scripts tests use assertTrue, not there in Python 2.3
|Reported by:||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
With the fix r7921 (thanks) I got past the immediate error on trying to run tests on 2.3, but hit a few more.
First the admin_scripts tests assume unittest.TestCase has an assertTrue method, but that doesn't exist in 2.3. Looking at the source it seems failUnless, which does exist in 2.3, is the same as assertTrue. Changing assertTrue to failUnless allows all the admin_scripts tests to run successfully on Python 2.3.
Second the regressiontests/utils/datastructures.py file attempts to work around the lack of sorted in 2.3 but the import is at the end of the file, which doesn't seem to work. Moving it to the top allows that test to run.
There are a couple of more failures running on 2.3 but they are unrelated to admin_scripts or sorted and I've run out of time for now so I figured I'd get these ones submitted and fixed first.
Change History (12)
comment:1 Changed 8 years ago by
|Patch needs improvement:||unset|