Opened 12 years ago

Closed 12 years ago

#3035 closed defect (fixed)

syntax error in doctest, utils.text

Reported by: yary h <spm-django@…> Owned by: Adrian Holovaty
Component: Testing framework Version: master
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


In the trunk, django\utils\

 line 123, in django.utils.text.smart_split
Failed example:
    list(smart_split('This is "a person's" test.'))
Exception raised:
    Traceback (most recent call last):
      File "C:\Python24\lib\", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest django.utils.text.smart_split[0]>", line 1
         list(smart_split('This is "a person's" test.'))

seems to be caused by not specifying a raw docstring. Change line 117, 118 to:

def smart_split(text):

Change History (2)

comment:1 Changed 12 years ago by Yary H <spam-django@…>

Component: Admin interfaceUnit test system

Also see/merge with #3036

comment:2 Changed 12 years ago by mir@…

Resolution: fixed
Status: newclosed

Seems to have been fixed by now ;-)

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