mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
#2766: remove code without effect.
This commit is contained in:
parent
21f990cf0e
commit
45141d0057
1 changed files with 0 additions and 2 deletions
|
@ -2268,8 +2268,6 @@ def DocTestSuite(module=None, globs=None, extraglobs=None, test_finder=None,
|
|||
|
||||
module = _normalize_module(module)
|
||||
tests = test_finder.find(module, globs=globs, extraglobs=extraglobs)
|
||||
if globs is None:
|
||||
globs = module.__dict__
|
||||
if not tests:
|
||||
# Why do we want to do this? Because it reveals a bug that might
|
||||
# otherwise be hidden.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue