This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 34
34
from .external import available_software
35
35
36
36
float_regex = re .compile (r'\s*([+-]?\s*((\d*\.?\d+)|(\d+\.?))([eE][+-]?\d+)?)' )
37
- optional_regex = re .compile (r'(arb216|arb218|py2|py3|long time|not implemented|not tested|known bug)|([^ a-z]\s*optional\s*[:-]*((\s|\w)*))' )
37
+ optional_regex = re .compile (r'(arb216|arb218|py2|py3|long time|not implemented|not tested|known bug)|([^ a-z]\s*optional\s*[:-]*((\s|\w|[.] )*))' )
38
38
# Version 4.65 of glpk prints the warning "Long-step dual simplex will
39
39
# be used" frequently. When Sage uses a system installation of glpk
40
40
# which has not been patched, we need to ignore that message.
@@ -316,6 +316,8 @@ def parse_optional_tags(string):
316
316
{''}
317
317
sage: sorted(list(parse_optional_tags("sage: #optional -- foo bar, baz")))
318
318
['bar', 'foo']
319
+ sage: parse_optional_tags("sage: #optional -- foo.bar, baz")
320
+ {'foo.bar'}
319
321
sage: sorted(list(parse_optional_tags(" sage: factor(10^(10^10) + 1) # LoNg TiME, NoT TeSTED; OptioNAL -- P4cka9e")))
320
322
['long time', 'not tested', 'p4cka9e']
321
323
sage: parse_optional_tags(" sage: raise RuntimeError # known bug")
You can’t perform that action at this time.
0 commit comments