Django

Code

Ticket #7293 (closed: fixed)

Opened 5 months ago

Last modified 4 months ago

django.template docstrings not accurate (fail doctest.testmod)

Reported by: akaihola Assigned to: nobody
Milestone: Component: Testing framework
Version: SVN Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 1 Needs documentation:
Needs tests: Patch needs improvement:

Description

$ DJANGO_SETTINGS_MODULE=dummy_settings python -c "import doctest;from django import template;doctest.testmod(template)"
**********************************************************************
File "/home/akaihola/dl/prg/www/django/django/template/__init__.py", line 469, in django.template.FilterExpression
Failed example:
    fe.var
Expected:
    'variable'
Got:
    <Variable: 'variable'>
**********************************************************************
File "/home/akaihola/dl/prg/www/django/django/template/__init__.py", line 602, in django.template.Variable
Failed example:
    Variable('article.section').resolve(c)
Expected:
    u'News'
Got:
    'News'
**********************************************************************
File "/home/akaihola/dl/prg/www/django/django/template/__init__.py", line 610, in django.template.Variable
Failed example:
    Variable('article.section').resolve(c)
Expected:
    u'News'
Got:
    'News'
**********************************************************************
2 items had failures:
   1 of   5 in django.template.FilterExpression
   2 of   8 in django.template.Variable
***Test Failed*** 3 failures.

Attachments

7293.patch (1.0 kB) - added by akaihola on 05/23/08 02:53:36.
fix for the docstrings in django/template/init.py

Change History

05/23/08 02:53:36 changed by akaihola

  • attachment 7293.patch added.

fix for the docstrings in django/template/init.py

06/06/08 08:58:42 changed by russellm

  • status changed from new to closed.
  • resolution set to fixed.

(In [7580]) Fixed #7293 -- Corrected some doctests strings internal to the template module. Thanks, akaihola.


Add/Change #7293 (django.template docstrings not accurate (fail doctest.testmod))




Change Properties
Action