From 4be7a92f7f296fe74fc7e220c3740a800ec85c09 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 12 Sep 2004 22:39:46 +0000 Subject: [PATCH] Tester.__init__(): this couldn't possibly work when a module argument was passed. --- Lib/doctest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/doctest.py b/Lib/doctest.py index d77fe15254e..587753e5f66 100644 --- a/Lib/doctest.py +++ b/Lib/doctest.py @@ -1957,7 +1957,7 @@ def __init__(self, mod=None, globs=None, verbose=None, DeprecationWarning, stacklevel=2) if mod is None and globs is None: raise TypeError("Tester.__init__: must specify mod or globs") - if mod is not None and not _ismodule(mod): + if mod is not None and not inspect.ismodule(mod): raise TypeError("Tester.__init__: mod must be a module; %r" % (mod,)) if globs is None: