#15370: Most of the admin_scripts tests failing because of a warning
-------------------------------------------+--------------------------------
               Reporter:  mila             |         Owner:  nobody
                 Status:  new              |     Milestone:        
              Component:  django-admin.py  |       Version:  SVN   
             Resolution:                   |      Keywords:        
           Triage Stage:  Unreviewed       |     Has patch:  0     
    Needs documentation:  0                |   Needs tests:  0     
Patch needs improvement:  0                |  
-------------------------------------------+--------------------------------

Comment (by kmtracey):

 Replying to [comment:8 mila]:
 > I agree that this is a Python bug. Any warnings configuration is ignored
 in site.py - see my test bellow.
 >
 > I can also see a problem in Django admin_scripts tests - it runs code
 which emits warnings and tests for empty stderr output. Some of the
 warnings are emitted by Django itself. It means that admin_scripts tests
 assume configuration where warnings are not printed.
 >

 I'm confused -- what warnings in the output you get are emitted by Django?
 The only one I see is the locale import one, which seems to be a quirk of
 Python 2.5 on Windows.

 I don't consider it an error for these tests to be checking for no warning
 output -- if these commands were emitting legitimate warnings under the
 default warning level that is something that would likely qualify as a bug
 that needed to be fixed somewhere in Django code. These particular
 failures I believe are due to a bug in that level of Python on that
 platform...perhaps we should try to change these tests to not fail for
 that particular combo, but in general I think it is correct behavior for
 these tests to be asserting that no warnings are appearing in the output.

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

Reply via email to