Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/sage/doctest/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,15 @@ def __init__(self, options, args):
options.hide.discard('all')
from sage.features.all import all_features
feature_names = {f.name for f in all_features() if not f.is_standard()}
from sage.doctest.external import external_software
feature_names.difference_update(external_software)
options.hide = options.hide.union(feature_names)
if 'optional' in options.hide:
options.hide.discard('optional')
from sage.features.all import all_features
feature_names = {f.name for f in all_features() if f.is_optional()}
from sage.doctest.external import external_software
feature_names.difference_update(external_software)
options.hide = options.hide.union(feature_names)

options.disabled_optional = set()
Expand Down
2 changes: 1 addition & 1 deletion src/sage/features/internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _is_present(self):
try:
urlopen(req, timeout=1, context=default_context())
return FeatureTestResult(self, True)
except urllib.error.URLError:
except (urllib.error.URLError, TimeoutError):
return FeatureTestResult(self, False)


Expand Down