Commit 4be7a92f authored by Tim Peters's avatar Tim Peters

Tester.__init__(): this couldn't possibly work when a module argument

was passed.
parent a84f3abb
...@@ -1957,7 +1957,7 @@ class Tester: ...@@ -1957,7 +1957,7 @@ class Tester:
DeprecationWarning, stacklevel=2) DeprecationWarning, stacklevel=2)
if mod is None and globs is None: if mod is None and globs is None:
raise TypeError("Tester.__init__: must specify mod or globs") 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" % raise TypeError("Tester.__init__: mod must be a module; %r" %
(mod,)) (mod,))
if globs is None: if globs is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment