summaryrefslogtreecommitdiff
path: root/sphinx/ext
diff options
context:
space:
mode:
authorAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-17 23:46:31 +0000
committerAdam Turner <9087854+aa-turner@users.noreply.github.com>2023-02-18 02:16:50 +0000
commit13442f690183cc2fb724c51af2321164b5ba749d (patch)
tree724024a1ad4d96fc3e22d3a180ee38a37efc0a3c /sphinx/ext
parentdc1a519a1d76c8fb18500b2093c07fa26c999333 (diff)
downloadsphinx-git-13442f690183cc2fb724c51af2321164b5ba749d.tar.gz
Fix pytest style issues
Diffstat (limited to 'sphinx/ext')
-rw-r--r--sphinx/ext/apidoc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/ext/apidoc.py b/sphinx/ext/apidoc.py
index 839486d55..578b54903 100644
--- a/sphinx/ext/apidoc.py
+++ b/sphinx/ext/apidoc.py
@@ -270,7 +270,8 @@ def recurse_tree(rootpath: str, excludes: list[str], opts: Any,
toplevels.append(module_join(root_package, subpackage))
else:
# if we are at the root level, we don't require it to be a package
- assert root == rootpath and root_package is None
+ assert root == rootpath
+ assert root_package is None
for py_file in files:
if not is_skipped_module(path.join(rootpath, py_file), opts, excludes):
module = py_file.split('.')[0]