[Django] #12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP

View: New views
3 Messages — Rating Filter:   Alert me  

[Django] #12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP
-------------------------------+--------------------------------------------
 Reporter:  jfenwick           |       Owner:  nobody    
   Status:  new                |   Milestone:            
Component:  Testing framework  |     Version:  1.0      
 Keywords:  mysql              |       Stage:  Unreviewed
Has_patch:  0                  |  
-------------------------------+--------------------------------------------
 When running django-1.0.3\tests\runtests.py I get this error:

 {{{
 Creating test database...
 Error: One or more models did not validate:
 serializers_regress.booleandata: "data": BooleanFields do not accept null
 values. Use a NullBooleanField instead.
 }}}

 May be related to: [http://code.djangoproject.com/ticket/5563]

--
Ticket URL: <http://code.djangoproject.com/ticket/12182>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP
----------------------------------------+-----------------------------------
          Reporter:  jfenwick           |         Owner:  nobody
            Status:  new                |     Milestone:        
         Component:  Testing framework  |       Version:  1.0  
        Resolution:                     |      Keywords:  mysql
             Stage:  Unreviewed         |     Has_patch:  0    
        Needs_docs:  0                  |   Needs_tests:  0    
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Changes (by jfenwick):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I just tried runtests.py in django 1.0.3 with DATABASE_ENGINE =
 'postgresql_psycopg2' and that also gave the same error.

--
Ticket URL: <http://code.djangoproject.com/ticket/12182#comment:1>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: [Django] #12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP

by Django-3 :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View Threaded | Show Only this Message

#12182: 1.0.3 runtests.py fails to validate models on MySQL 5.1.34 on Windows XP
----------------------------------------+-----------------------------------
          Reporter:  jfenwick           |         Owner:  nobody
            Status:  closed             |     Milestone:        
         Component:  Testing framework  |       Version:  1.0  
        Resolution:  invalid            |      Keywords:  mysql
             Stage:  Unreviewed         |     Has_patch:  0    
        Needs_docs:  0                  |   Needs_tests:  0    
Needs_better_patch:  0                  |  
----------------------------------------+-----------------------------------
Changes (by kmtracey):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 The behavior you are describing indicates you are running the 1.0.3 tests
 using some higher level of Django code.  r10456 introduced the warning,
 and simultaneously fixed the test noted here to not pass null as a
 parameter to that field.  This changeset was not backported to the 1.0.X
 branch, so the test (and code) in all 1.0.X releases do not have the
 change.  If you are getting the message, then somehow when you are running
 the 1.0.3 tests you are picking up a higher level of Django code, either
 because it is installed in site-packages or because your PYTHONPATH points
 to it.

--
Ticket URL: <http://code.djangoproject.com/ticket/12182#comment:2>
Django <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 django-updates@...
To unsubscribe from this group, send email to django-updates+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---