Opened 10 years ago

Closed 10 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: UI/UX:

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 10 years ago.
Patch to trunk/test/doctest.py

Download all attachments as: .zip

Change History (2)

Changed 10 years ago by Yasushi Masuda

Attachment: patch_to_doctest.diff added

Patch to trunk/test/doctest.py

comment:1 Changed 10 years ago by Malcolm Tredinnick

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