mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Tester.__init__(): this couldn't possibly work when a module argument
was passed.
This commit is contained in:
parent
a84f3abb9e
commit
4be7a92f7f
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue