doctest environment question
Peter Otten
__peter__ at web.de
Tue May 22 04:51:18 EDT 2007
tag wrote:
> On 22 May, 08:59, Peter Otten <__pete... at web.de> wrote:
>> inspect.getmodule(f) returns None because f() is not defined in a module.
> OK. But there was a module when I ran interactively?
Yes. Looking into the doctest source, there is a -- deprecated -- class
called Tester that provides a module. I don't know why this approach was
dropped.
Peter
More information about the Python-list
mailing list