[issue4197] Doctest module does not work with zipped packages

Alexander Belopolsky report at bugs.python.org
Sat Oct 25 00:07:07 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Attached patch addresses the crash, but two issues remain:

$ ./python.exe testmodule.zip 
**********************************************************************
File "__main__", line ?, in __main__.c
Failed example:
    'line 2'
Expected nothing
Got:
    'line 2'
**********************************************************************
1 items had failures:
   1 of   1 in __main__.c
***Test Failed*** 1 failures.


The line number for the failed example cannot be found and file name is 
reported as __main__.c instead of __main__.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4197>
_______________________________________


More information about the Python-bugs-list mailing list