Skip to content

Commit 49babd6

Browse files
author
Matthias Koeppe
committed
src/sage/doctest/sources.py: Use file-level doctest tags for the virtual doctest; fixes Warning: Variable 'sig_on_count' referenced here was set only ...
1 parent f2671d8 commit 49babd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/doctest/sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def _process_doc(self, doctests, doc, namespace, start):
238238
# Line number refers to the end of the docstring
239239
sigon = doctest.Example(sig_on_count_doc_doctest, "0\n", lineno=docstring.count("\n"))
240240
sigon.sage_source = sig_on_count_doc_doctest
241-
sigon.optional_tags = frozenset()
241+
sigon.optional_tags = frozenset(self.file_optional_tags)
242242
sigon.probed_tags = frozenset()
243243
dt.examples.append(sigon)
244244
doctests.append(dt)

0 commit comments

Comments
 (0)