Skip to content

Commit 5a60f0c

Browse files
committed
Merge branch 'fix-sage-t-probe-all' into pyodide
2 parents da0b05e + 1ada49c commit 5a60f0c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/sage/doctest/parsing.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ class SageDocTestParser(doctest.DocTestParser):
877877
optional_tags: Union[bool, set[str]]
878878
optional_only: bool
879879
optionals: dict[str, int]
880-
probed_tags: set[str]
880+
probed_tags: Union[bool, set[str]]
881881

882882
def __init__(self, optional_tags=(), long=False, *, probed_tags=(), file_optional_tags=()):
883883
r"""
@@ -916,7 +916,10 @@ def __init__(self, optional_tags=(), long=False, *, probed_tags=(), file_optiona
916916
self.optional_tags.remove('sage')
917917
else:
918918
self.optional_only = True
919-
self.probed_tags = set(probed_tags)
919+
if probed_tags is True:
920+
self.probed_tags = True
921+
else:
922+
self.probed_tags = set(probed_tags)
920923
self.file_optional_tags = set(file_optional_tags)
921924

922925
def __eq__(self, other):

0 commit comments

Comments
 (0)