Skip to content

Commit

Permalink
src/sage/doctest/control.py (skipfile): Simplify handling of --if-ins…
Browse files Browse the repository at this point in the history
…talled
  • Loading branch information
Matthias Koeppe committed Sep 12, 2023
1 parent 106a5a3 commit d3a00b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def skipfile(filename, tested_optional_tags=False, *,
if log:
log(f"Skipping '{filename}' because it is created by the jupyter-sphinx extension for internal use and should not be tested")
return True
if if_installed and ext in ('.py', '.pyx', '.pxd'):
if if_installed:
module_name = get_basename(filename)
try:
if not importlib.util.find_spec(module_name): # tries to import the containing package
Expand Down

0 comments on commit d3a00b7

Please sign in to comment.