Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
trac 34533: silence warning during doctesting about "chained fixups"
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpalmieri committed Sep 14, 2022
1 parent 08202bc commit 67c914c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/doctest/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
ld_warning_regex = re.compile(r'^.*dylib.*was built for newer macOS version.*than being linked.*')
# :trac:`30845` -- suppress warning on conda about ld
ld_pie_warning_regex = re.compile(r'ld: warning: -pie being ignored. It is only used when linking a main executable')
# :trac:`34533` -- suppress warning on OS X 12.6 about chained fixups
chained_fixup_warning_regex = re.compile(r'ld: warning: -undefined dynamic_lookup may not work with chained fixups')
sympow_cache_warning_regex = re.compile(r'\*\*WARNING\*\* /var/cache/sympow/datafiles/le64 yields insufficient permissions')
find_sage_prompt = re.compile(r"^(\s*)sage: ", re.M)
find_sage_continuation = re.compile(r"^(\s*)\.\.\.\.:", re.M)
Expand Down Expand Up @@ -117,6 +119,9 @@ def fake_RIFtol(*args):
(lambda g, w: "Long-step" in g,
lambda g, w: (glpk_simplex_warning_regex.sub('', g), w)),

(lambda g, w: "chained fixups" in g,
lambda g, w: (chained_fixup_warning_regex.sub('', g), w)),

(lambda g, w: "insufficient permissions" in g,
lambda g, w: (sympow_cache_warning_regex.sub('', g), w)),

Expand Down

0 comments on commit 67c914c

Please sign in to comment.