summaryrefslogtreecommitdiffstats
path: root/Lib/doctest.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-09-12 22:39:46 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-09-12 22:39:46 (GMT)
commit4be7a92f7f296fe74fc7e220c3740a800ec85c09 (patch)
tree892897d6bb9520c8034c3925fb1a7eb419584ec6 /Lib/doctest.py
parenta84f3abb9ed70a0b13181698fd8c270dd4abbb88 (diff)
downloadcpython-4be7a92f7f296fe74fc7e220c3740a800ec85c09.zip
cpython-4be7a92f7f296fe74fc7e220c3740a800ec85c09.tar.gz
cpython-4be7a92f7f296fe74fc7e220c3740a800ec85c09.tar.bz2
Tester.__init__(): this couldn't possibly work when a module argument
was passed.
Diffstat (limited to 'Lib/doctest.py')
-rw-r--r--Lib/doctest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/doctest.py b/Lib/doctest.py
index d77fe15..587753e 100644
--- a/Lib/doctest.py
+++ b/Lib/doctest.py
@@ -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: