Opened 18 years ago

Closed 18 years ago

#2771 closed defect (fixed)

[patch] doctests of trunk/test fail for Python 2.5

Reported by: ymasuda[at]ethercube.com Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Some of doctests in trunk/test fails for Python 2.5 (FINAL), because of an API change in doctest.py,
which was introduced from 2.5a1.
The attached patch includes signature adaption to 2.5 and a bifurcated function call to
self.save_linecache_getlines().

Attachments (1)

patch_to_doctest.diff (1.1 KB ) - added by Yasushi Masuda 18 years ago.
Patch to trunk/test/doctest.py

Download all attachments as: .zip

Change History (2)

by Yasushi Masuda, 18 years ago

Attachment: patch_to_doctest.diff added

Patch to trunk/test/doctest.py

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [3819]) Fixed #2771 -- Tweaked Django's doctest module so that it also works with
Python 2.5. Thanks, ymasuda.

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