Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#15370 closed Bug (invalid)

Most of the admin_scripts tests failing because of a warning

Reported by: Miloslav Pojman Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: Not importing directory 'C:\devel\python\django\tests\regressiontests\locale': missing __init__.py

Windows XP, Python 2.5. I can get this warning when I add regressiontests to PYTHONPATH and run Python:

C:\devel\python\django\tests\regressiontests>SET PYTHONPATH=%cd%
C:\devel\python\django\tests\regressiontests>echo %PYTHONPATH%
C:\devel\python\django\tests\regressiontests
C:\devel\python\django\tests\regressiontests>python
warning: Not importing directory 'C:\devel\python\django\tests\regressiontests\l
ocale': missing __init__.py
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Attachments (1)

admin_scripts_warnings.diff (843 bytes ) - added by Miloslav Pojman 14 years ago.

Download all attachments as: .zip

Change History (14)

comment:1 by Russell Keith-Magee, 14 years ago

This strikes me as very weird error -- nothing should be trying to import locale, because it *isn't* a Python module. That's why it doesn't have a init.py.

Can someone confirm if this is a quirk of Windows? Because I can't reproduce it under OSX or Linux (and I don't have access to a Windows box).

comment:2 by Miloslav Pojman, 14 years ago

Similar issue is noted in Django 1.3 release notes: http://docs.djangoproject.com/en/dev//releases/1.3/#loading-of-translations-from-the-project-directory

I guess the problem is that locale is a Python built-in module and is imported at Python (and manage.py) startup.

comment:3 by Miloslav Pojman, 14 years ago

Here is a way how to "reproduce" it under Linux:

$ mkdir locale
$ ls
locale
$ python -Walways
Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
__main__:1: ImportWarning: Not importing directory 'locale': missing __init__.py
>>>

The Windows specific is that locale module is imported in site.py which is probably before warning filters are enabled.

comment:4 by Ramiro Morales, 14 years ago

What's the command you are using to run the test suite?. What Django SVN revision are you using?

I'm on r15632 and I'm getting two errors and one failure, all unrelated to this. I'm simply running

C:\...>python -V
Python 2.7.1

C:\...>cd tests
C:\...>PYTHONPATH=..
C:\...>python runtests.py --settings=test_sqlite admin_scripts

OS is Windows 7.

Running the admin_script test alone don't generate errors either.

Version 0, edited 14 years ago by Ramiro Morales (next)

comment:5 by Miloslav Pojman, 14 years ago

I'm running Python 2.5.4 - the difference is probably in warning settings. I'm attaching patch to reproduce the problem under other systems/versions.

It just turns on import warnings. Turning warnings off does not fix the issue - it seems that warnings from site.py are always displayed in my configuration.

C:\...\django\tests>python -V
Python 2.5.4

C:\...\django\tests>git log -1
commit 08e37516ca638131a6599f376e97433a15ae990a
Author: russellm <russellm@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Date:   Tue Feb 22 11:33:04 2011 +0000

    Fixed #15371 -- Ensure that a superuser created with the createsuperuser man
agement command with --noinput has an invalid password, not a blank password. Th
anks to yishaibeeri for the report and patch.

    git-svn-id: http://code.djangoproject.com/svn/django/trunk@15631 bcc190cf-ca
fb-0310-a4f2-bffc1f526a37

by Miloslav Pojman, 14 years ago

Attachment: admin_scripts_warnings.diff added

comment:6 by Russell Keith-Magee, 14 years ago

@mila -- Looking at the implementation of site.py (it took me a while to realize you were talking about the Python site-packages site file, not a file in the Django source tree), it appears that the call to 'import locale' only happens when sys.platform == 'win32'.

So -- the problem now turns to what it is about your configuration that causes this error to show. How exactly are you running the test suite? Are you specifying a warning level? Have you enabled any warning levels at a system level?

comment:7 by Karen Tracey, 14 years ago

FYI I see these failures on Windows XP/Python 2.5.4 combo also. But not on Python 2.4.4, 2.6.5, or 2.7.1. I noticed them a while ago (1.2 timeframe) but my Windows XP box has gotten to be pretty sick (turns itself off due to overheating, I think, if I try to run the full Django test suite, plus it's painfully slow), plus life got busy...but at any rate these are not new for this specific combo, and I only seem them on that one level of Python so I kinda put it down to a likely Python bug in just that level.

comment:8 by Miloslav Pojman, 14 years ago

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.

Here is my site.py/warnigns test:

C:\tmp\foo>mkdir locale

C:\tmp\foo>SET PYTHONPATH=%cd%

C:\tmp\foo>echo %PYTHONPATH%
C:\tmp\foo

Directory named locale emits warning:

C:\tmp\foo>python
warning: Not importing directory 'C:\tmp\foo\locale': missing __init__.py
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^C

Warning is not displayed if not from site.py:

C:\tmp\foo>python -S
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
>>> import locale
>>> ^C

Warning can be enabled:

C:\tmp\foo>python -S -W all
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
>>> import locale
__main__:1: ImportWarning: Not importing directory 'locale': missing __init__.py

__main__:1: ImportWarning: Not importing directory 'C:\tmp\foo\locale': missing
__init__.py
>>> ^C

Warnings can be disabled:

C:\tmp\foo>python -S -W ignore
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
>>> import locale
>>> ^C

But warnings can not be disabled in site.py:

C:\tmp\foo>python -W ignore
warning: Not importing directory 'C:\tmp\foo\locale': missing __init__.py
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> ^C

I don't know about any specific Python configuration in my system. Here is how I run the test suite and results:

C:\devel\python\django>SET PYTHONPATH=%cd%

C:\devel\python\django>echo %PYTHONPATH%
C:\devel\python\django

C:\devel\python\django>cd tests

C:\devel\python\django\tests>python runtests.py --settings=test_sqlite admin_scr
ipts
Creating test database for alias 'default'...
Creating test database for alias 'other'...
FFFFFF.F..FFFFF.FF.F..FF...FF.FF...FF.FF...FF.FF...........FF.FF......FF.F......
..FF.FFFFFFF.FFFFF............F..F.....F.F.
======================================================================
FAIL: test_option_then_setting (regressiontests.admin_scripts.tests.ArgumentOrde
r)
Options passed before settings are correctly handled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1278, in test_option_then_setting
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_option_then_setting_then_option (regressiontests.admin_scripts.tests.
ArgumentOrder)
Options are correctly handled when they are passed before and after a setting
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1292, in test_option_then_setting_then_option
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_setting_then_option (regressiontests.admin_scripts.tests.ArgumentOrde
r)
Options passed after settings are correctly handled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1264, in test_setting_then_option
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_setting_then_short_option (regressiontests.admin_scripts.tests.Argume
ntOrder)
Short options passed after settings are correctly handled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1271, in test_setting_then_short_option
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_short_option_then_setting (regressiontests.admin_scripts.tests.Argume
ntOrder)
Short options passed before settings are correctly handled
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1285, in test_short_option_then_setting
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_app_command (regressiontests.admin_scripts.tests.CommandTypes)
User AppCommands can execute when a single app name is provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1187, in test_app_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_app_command_multiple_apps (regressiontests.admin_scripts.tests.Comman
dTypes)
User AppCommands raise an error when multiple app names are provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1202, in test_app_command_multiple_apps
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_base_command (regressiontests.admin_scripts.tests.CommandTypes)
User BaseCommands can execute when a label is provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1139, in test_base_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_base_command_multiple_label (regressiontests.admin_scripts.tests.Comm
andTypes)
User BaseCommands can execute when no labels are provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1153, in test_base_command_multiple_label
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_base_command_no_label (regressiontests.admin_scripts.tests.CommandTyp
es)
User BaseCommands can execute when no labels are provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1146, in test_base_command_no_label
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_base_command_with_option (regressiontests.admin_scripts.tests.Command
Types)
User BaseCommands can execute with options when a label is provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1160, in test_base_command_with_option
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_base_command_with_options (regressiontests.admin_scripts.tests.Comman
dTypes)
User BaseCommands can execute with multiple options when a label is provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1167, in test_base_command_with_options
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_label_command (regressiontests.admin_scripts.tests.CommandTypes)
User LabelCommands can execute when a label is provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1226, in test_label_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_label_command_multiple_label (regressiontests.admin_scripts.tests.Com
mandTypes)
User LabelCommands are executed multiple times if multiple labels are provided
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1239, in test_label_command_multiple_label
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_noargs (regressiontests.admin_scripts.tests.CommandTypes)
NoArg Commands can be executed
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1174, in test_noargs
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_specific_help (regressiontests.admin_scripts.tests.CommandTypes)
--help can be used on a specific command
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1132, in test_specific_help
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_version (regressiontests.admin_scripts.tests.CommandTypes)
--version is handled as a special case
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1104, in test_version
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.DjangoA
dminAlternateSettings)
alternate: django-admin builtin commands succeed if settings are provided in the
 environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 421, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.DjangoAdmi
nAlternateSettings)
alternate: django-admin builtin commands succeed if settings are provided as arg
ument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 414, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
DjangoAdminAlternateSettings)
alternate: django-admin can execute user commands if settings are provided in en
vironment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 456, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Dja
ngoAdminAlternateSettings)
alternate: django-admin can execute user commands if settings are provided as ar
gument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 449, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.DjangoA
dminDefaultSettings)
default: django-admin builtin commands succeed if settings are provided in the e
nvironment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 223, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.DjangoAdmi
nDefaultSettings)
default: django-admin builtin commands succeed if settings are provided as argum
ent
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 216, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
DjangoAdminDefaultSettings)
default: django-admin can execute user commands if settings are provided in envi
ronment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 258, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Dja
ngoAdminDefaultSettings)
default: django-admin can execute user commands if settings are provided as argu
ment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 251, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.DjangoA
dminFullPathDefaultSettings)
fulldefault: django-admin builtin commands succeed if the environment contains s
ettings
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 289, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.DjangoAdmi
nFullPathDefaultSettings)
fulldefault: django-admin builtin commands succeed if a settings file is provide
d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 282, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
DjangoAdminFullPathDefaultSettings)
fulldefault: django-admin can execute user commands if settings are provided in
environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 324, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Dja
ngoAdminFullPathDefaultSettings)
fulldefault: django-admin can execute user commands if settings are provided as
argument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 317, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.DjangoA
dminMultipleSettings)
alternate: django-admin builtin commands succeed if settings are provided in the
 environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 492, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.DjangoAdmi
nMultipleSettings)
alternate: django-admin builtin commands succeed if settings are provided as arg
ument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 485, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
DjangoAdminMultipleSettings)
alternate: django-admin can't execute user commands, even if settings are provid
ed in environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 526, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Dja
ngoAdminMultipleSettings)
alternate: django-admin can't execute user commands, even if settings are provid
ed as argument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 519, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.DjangoA
dminSettingsDirectory)
directory: django-admin builtin commands succeed if settings are provided in the
 environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 589, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.DjangoAdmi
nSettingsDirectory)
directory: django-admin builtin commands succeed if settings are provided as arg
ument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 582, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_setup_environ (regressiontests.admin_scripts.tests.DjangoAdminSetting
sDirectory)
directory: startapp creates the correct directory
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 547, in test_setup_environ
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 246 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
Error: 'settings_test' conflicts with the name of an existing Python module and
cannot be used as an app name. Please try another name.
'

======================================================================
FAIL: test_builtin_command (regressiontests.admin_scripts.tests.ManageDefaultSet
tings)
default: manage.py builtin commands succeed when default settings are appropriat
e
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 638, in test_builtin_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_bad_environment (regressiontests.admin_scripts.tests.Man
ageDefaultSettings)
default: manage.py builtin commands fail if settings file (from environment) doe
sn't exist
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 666, in test_builtin_with_bad_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.ManageD
efaultSettings)
default: manage.py builtin commands succeed if settings are provided in the envi
ronment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 652, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.ManageDefa
ultSettings)
default: manage.py builtin commands succeed if settings are provided as argument

----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 645, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command (regressiontests.admin_scripts.tests.ManageDefaultSett
ings)
default: manage.py can execute user commands when default settings are appropria
te
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 673, in test_custom_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
ManageDefaultSettings)
default: manage.py can execute user commands when settings are provided in envir
onment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 687, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Man
ageDefaultSettings)
default: manage.py can execute user commands when settings are provided as argum
ent
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 680, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_command (regressiontests.admin_scripts.tests.ManageFullPathDe
faultSettings)
fulldefault: manage.py builtin commands succeed when default settings are approp
riate
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 705, in test_builtin_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_bad_environment (regressiontests.admin_scripts.tests.Man
ageFullPathDefaultSettings)
fulldefault: manage.py builtin commands fail if settings file (from environment)
 doesn't exist
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 733, in test_builtin_with_bad_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_environment (regressiontests.admin_scripts.tests.ManageF
ullPathDefaultSettings)
fulldefault: manage.py builtin commands succeed if settings are provided in the
environment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 719, in test_builtin_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.ManageFull
PathDefaultSettings)
fulldefault: manage.py builtin commands succeed if settings are provided as argu
ment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 712, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command (regressiontests.admin_scripts.tests.ManageFullPathDef
aultSettings)
fulldefault: manage.py can execute user commands when default settings are appro
priate
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 740, in test_custom_command
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_environment (regressiontests.admin_scripts.tests.
ManageFullPathDefaultSettings)
fulldefault: manage.py can execute user commands when settings are provided in e
nvironment
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 754, in test_custom_command_with_environment
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Man
ageFullPathDefaultSettings)
fulldefault: manage.py can execute user commands when settings are provided as a
rgument
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 747, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_builtin_with_settings (regressiontests.admin_scripts.tests.ManageMult
ipleSettings)
multiple: manage.py builtin commands succeed if settings are provided as argumen
t
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 915, in test_builtin_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_custom_command_with_settings (regressiontests.admin_scripts.tests.Man
ageMultipleSettings)
multiple: manage.py can execute user commands if settings are provided as argume
nt
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 951, in test_custom_command_with_settings
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_app_with_import (regressiontests.admin_scripts.tests.ManageValidate)
manage.py validate does not raise errors when an app imports a base class that i
tself has an abstract base
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1028, in test_app_with_import
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

======================================================================
FAIL: test_complex_app (regressiontests.admin_scripts.tests.ManageValidate)
manage.py validate does not raise an ImportError validating a complex app with n
ested calls to load_app
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 1018, in test_complex_app
    self.assertNoOutput(err)
  File "C:\devel\python\django\tests\regressiontests\admin_scripts\tests.py", li
ne 158, in assertNoOutput
    self.assertEquals(len(stream), 0, "Stream should be empty: actually contains
 '%s'" % stream)
AssertionError: 109 != 0 : Stream should be empty: actually contains 'warning: N
ot importing directory 'C:\devel\python\django\tests\regressiontests\locale': mi
ssing __init__.py
'

----------------------------------------------------------------------
Ran 123 tests in 710.899s

FAILED (failures=54)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...

Btw you can see that it's really slow on Windows:)

in reply to:  8 comment:9 by Karen Tracey, 14 years ago

Replying to 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.

comment:10 by Miloslav Pojman, 14 years ago

Following warning is emitted by Django:

PendingDeprecationWarning: Translations in the project directory aren't supported anymore. Use the LOCALE_PATHS setting instead.

comment:11 by Łukasz Rekucki, 14 years ago

Severity: Normal
Type: Bug

comment:12 by Jacob, 14 years ago

Resolution: invalid
Status: newclosed

I agree with Karen - marking Invalid accordingly.

comment:13 by Ramiro Morales, 13 years ago

Easy pickings: unset
UI/UX: unset

FYI, we implemented a workaround for this windows python particularity in r16273.

Note: See TracTickets for help on using tickets.
Back to Top