[Django] #21416: admin_scripts.tests.ManageValidate.test_app_with_import() fails with enabled warnings

0 views
Skip to first unread message

Django

unread,
Nov 9, 2013, 1:58:57 PM11/9/13
to django-...@googlegroups.com
#21416: admin_scripts.tests.ManageValidate.test_app_with_import() fails with
enabled warnings
-----------------------------------+--------------------
Reporter: Arfrever | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
admin_scripts.tests.ManageValidate.test_app_with_import() fails, when
warnings are enabled (using PYTHONWARNINGS="d,i::ImportWarning"
environmental variable).
This failure occurs in Django 1.6 and does not occur in Django 1.5.5.

{{{
$ PYTHONPATH="." PYTHONWARNINGS="d,i::ImportWarning" python2.7
tests/runtests.py --settings=test_sqlite -v1 admin_scripts
Creating test database for alias 'default'...
Creating test database for alias 'other'...
........................................................................................................................................F..................
======================================================================
FAIL: test_app_with_import (admin_scripts.tests.ManageValidate)
manage.py validate does not raise errors when an app imports a base class
that itself has an abstract base
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/Django-1.6/tests/admin_scripts/tests.py", line 1094, in
test_app_with_import
self.assertNoOutput(err)
File "/tmp/Django-1.6/tests/admin_scripts/tests.py", line 182, in
assertNoOutput
self.assertEqual(len(stream), 0, "Stream should be empty: actually
contains '%s'" % stream)
AssertionError: 282 != 0 : Stream should be empty: actually contains
'/tmp/Django-1.6/django/contrib/comments/__init__.py:9:
PendingDeprecationWarning: django.contrib.comments is deprecated and will
be removed before Django 1.8.
warnings.warn("django.contrib.comments is deprecated and will be removed
before Django 1.8.", PendingDeprecationWarning)
'

----------------------------------------------------------------------
Ran 155 tests in 211.841s

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

--
Ticket URL: <https://code.djangoproject.com/ticket/21416>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Nov 9, 2013, 2:00:13 PM11/9/13
to django-...@googlegroups.com
#21416: admin_scripts.tests.ManageValidate.test_app_with_import() fails with
enabled warnings
-----------------------------------+--------------------------------------

Reporter: Arfrever | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by Arfrever):

* cc: Arfrever (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


--
Ticket URL: <https://code.djangoproject.com/ticket/21416#comment:1>

Django

unread,
Nov 10, 2013, 8:15:33 PM11/10/13
to django-...@googlegroups.com
#21416: admin_scripts.tests.ManageValidate.test_app_with_import() fails with
enabled warnings
-----------------------------------+--------------------------------------

Reporter: Arfrever | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------

Comment (by timo):

I can reproduce this. May I ask why you want to run the tests in this
particular way?

--
Ticket URL: <https://code.djangoproject.com/ticket/21416#comment:2>

Django

unread,
Nov 19, 2013, 11:49:51 AM11/19/13
to django-...@googlegroups.com
#21416: admin_scripts.tests.ManageValidate.test_app_with_import() fails with
enabled warnings
-----------------------------------+--------------------------------------
Reporter: Arfrever | Owner: nobody
Type: Uncategorized | Status: closed

Component: Testing framework | Version: 1.6
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by timo):

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


--
Ticket URL: <https://code.djangoproject.com/ticket/21416#comment:3>

Reply all
Reply to author
Forward
0 new messages