Code

Opened 8 years ago

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

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by ymasuda

Patch to trunk/test/doctest.py

comment:1 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.