]> granicus.if.org Git - python/commitdiff
Tester.__init__(): this couldn't possibly work when a module argument
authorTim Peters <tim.peters@gmail.com>
Sun, 12 Sep 2004 22:39:46 +0000 (22:39 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 12 Sep 2004 22:39:46 +0000 (22:39 +0000)
was passed.

Lib/doctest.py

index d77fe15254e1bdf569327951a3f8f752f6dde06c..587753e5f6653cad550f9540491d088274e0991c 100644 (file)
@@ -1957,7 +1957,7 @@ class Tester:
                       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: