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.

作者 ncoghlan
收信人 ncoghlan
日期 2008-12-14.08:21:23
SpamBayes Score 0.00385487
Marked as misclassified
Message-id <1229242886.47.0.883564319605.issue4657@psf.upfronthosting.co.za>
In-reply-to
内容
When writing the unit tests for running doctests from inside a zipfile,
I initially had "<anon>" as the name being passed to the
doctest.DocTestFinder.find method.

With that name, the line numbers coming back for all of the examples
were being incremented by 1 beyond what test_doctest expected (and hence
my tests were failing).

Changing the name to "anon" eliminated the errors. (Both "<anon" and
"anon>" also failed in the same fashion as "<anon>")

I suspect there may be a problem with __LINECACHE_FILENAME_RE when "<"
or ">" are embedded in the name used for the doctest execution.
历史
日期 用户 动作 参数
2008-12-14 08:21:27ncoghlan修改recipients: + ncoghlan
2008-12-14 08:21:26ncoghlan修改messageid: <1229242886.47.0.883564319605.issue4657@psf.upfronthosting.co.za>
2008-12-14 08:21:25ncoghlan链接issue4657 messages
2008-12-14 08:21:24ncoghlan创建