Skip to content

Commit d3a00b7

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/control.py (skipfile): Simplify handling of --if-installed
1 parent 106a5a3 commit d3a00b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/doctest/control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def skipfile(filename, tested_optional_tags=False, *,
289289
if log:
290290
log(f"Skipping '{filename}' because it is created by the jupyter-sphinx extension for internal use and should not be tested")
291291
return True
292-
if if_installed and ext in ('.py', '.pyx', '.pxd'):
292+
if if_installed:
293293
module_name = get_basename(filename)
294294
try:
295295
if not importlib.util.find_spec(module_name): # tries to import the containing package

0 commit comments

Comments
 (0)