This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients belopolsky, loewis, ncoghlan
Date 2008-12-15.12:09:34
SpamBayes Score 9.991979e-07
Marked as misclassified No
Message-id <1229342976.23.0.572178178354.issue4197@psf.upfronthosting.co.za>
In-reply-to
Content
It turns out you were pretty close to pinpointing the problem in
doctest, but didn't quite manage to identify which step was going wrong.
The problem was actually that even after __file__ was being set
correctly, the call to linecache.getlines wasn't being given the
__loader__ access it needed in order to retrieve the source code from
inside the zipfile.

The __main__.c thing turned out just to be a red herring caused by the
choice of class name in the test code (I changed it to be __main__.Test
for the checked in unit test).

Checkin versions:
2.7 = r67790
2.6 = r67791
3.1 = r67792
3.0 = r67793
History
Date User Action Args
2008-12-15 12:09:36ncoghlansetrecipients: + ncoghlan, loewis, belopolsky
2008-12-15 12:09:36ncoghlansetmessageid: <1229342976.23.0.572178178354.issue4197@psf.upfronthosting.co.za>
2008-12-15 12:09:35ncoghlanlinkissue4197 messages
2008-12-15 12:09:34ncoghlancreate