#8510: Tests fail after [8494]
------------------------------------+---------------------------------------
Reporter: jarrow | Owner: nobody
Status: new | Milestone: 1.0
Component: Uncategorized | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by jarrow):
So [8494] actually triggered this (see below). And I opened another ticket
for the other failure, see #8511.
{{{
======================================================================
FAIL: Doctest: modeltests.reserved_names.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/test/_doctest.py", line
2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
modeltests.reserved_names.models.__test__.API_TESTS
File "/srv/lib/django-trunk/tests/modeltests/reserved_names/models.py",
line unknown line number, in API_TESTS
----------------------------------------------------------------------
File "/srv/lib/django-trunk/tests/modeltests/reserved_names/models.py",
line ?, in modeltests.reserved_names.models.__test__.API_TESTS
Failed example:
Thing.objects.filter(where__month=1)
Expected:
[<Thing: a>]
Got:
[]
======================================================================
FAIL: Doctest: modeltests.basic.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/test/_doctest.py", line
2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
modeltests.basic.models.__test__.API_TESTS
File "/srv/lib/django-trunk/tests/modeltests/basic/models.py", line
unknown line number, in API_TESTS
----------------------------------------------------------------------
File "/srv/lib/django-trunk/tests/modeltests/basic/models.py", line ?, in
modeltests.basic.models.__test__.API_TESTS
Failed example:
Article.objects.get(pub_date__year=2005, pub_date__month=7)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/test/_doctest.py",
line 1267, in __run
compileflags, 1) in test.globs
File "<doctest modeltests.basic.models.__test__.API_TESTS[14]>",
line 1, in ?
Article.objects.get(pub_date__year=2005, pub_date__month=7)
File "/usr/lib/python2.4/site-packages/django/db/models/manager.py",
line 81, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 300, in get
raise self.model.DoesNotExist("%s matching query does not exist."
DoesNotExist: Article matching query does not exist.
----------------------------------------------------------------------
File "/srv/lib/django-trunk/tests/modeltests/basic/models.py", line ?, in
modeltests.basic.models.__test__.API_TESTS
Failed example:
Article.objects.get(pub_date__year=2005, pub_date__month=7,
pub_date__day=28)
Exception raised:
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/test/_doctest.py",
line 1267, in __run
compileflags, 1) in test.globs
File "<doctest modeltests.basic.models.__test__.API_TESTS[15]>",
line 1, in ?
Article.objects.get(pub_date__year=2005, pub_date__month=7,
pub_date__day=28)
File "/usr/lib/python2.4/site-packages/django/db/models/manager.py",
line 81, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py",
line 300, in get
raise self.model.DoesNotExist("%s matching query does not exist."
DoesNotExist: Article matching query does not exist.
----------------------------------------------------------------------
File "/srv/lib/django-trunk/tests/modeltests/basic/models.py", line ?, in
modeltests.basic.models.__test__.API_TESTS
Failed example:
Article.objects.filter(pub_date__year=2005, pub_date__month=7)
Expected:
[<Article: Area woman programs in Python>]
Got:
[]
======================================================================
FAIL: Doctest: regressiontests.model_regress.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/test/_doctest.py", line
2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
regressiontests.model_regress.models.__test__.API_TESTS
File "/srv/lib/django-
trunk/tests/regressiontests/model_regress/models.py", line unknown line
number, in API_TESTS
----------------------------------------------------------------------
File "/srv/lib/django-
trunk/tests/regressiontests/model_regress/models.py", line ?, in
regressiontests.model_regress.models.__test__.API_TESTS
Failed example:
[p.when for p in Party.objects.filter(when__month = 1)]
Expected:
[datetime.date(1999, 1, 1)]
Got:
[]
----------------------------------------------------------------------
File "/srv/lib/django-
trunk/tests/regressiontests/model_regress/models.py", line ?, in
regressiontests.model_regress.models.__test__.API_TESTS
Failed example:
[p.when for p in Party.objects.filter(when__month = 12)]
Expected:
[datetime.date(1999, 12, 31), datetime.date(1998, 12, 31)]
Got:
[]
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8510#comment:4>
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
-~----------~----~----~----~------~----~------~--~---