#7745: admin_scripts tests use assertTrue, not there in Python 2.3
-----------------------------------------------+----------------------------
 Reporter:  Karen Tracey <[EMAIL PROTECTED]>  |       Owner:  nobody    
   Status:  new                                |   Milestone:            
Component:  Unit test system                   |     Version:  SVN       
 Keywords:                                     |       Stage:  Unreviewed
Has_patch:  0                                  |  
-----------------------------------------------+----------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7745>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to