Skip to content

Commit 67c914c

Browse files
committed
trac 34533: silence warning during doctesting about "chained fixups"
1 parent 08202bc commit 67c914c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/doctest/parsing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
ld_warning_regex = re.compile(r'^.*dylib.*was built for newer macOS version.*than being linked.*')
4444
# :trac:`30845` -- suppress warning on conda about ld
4545
ld_pie_warning_regex = re.compile(r'ld: warning: -pie being ignored. It is only used when linking a main executable')
46+
# :trac:`34533` -- suppress warning on OS X 12.6 about chained fixups
47+
chained_fixup_warning_regex = re.compile(r'ld: warning: -undefined dynamic_lookup may not work with chained fixups')
4648
sympow_cache_warning_regex = re.compile(r'\*\*WARNING\*\* /var/cache/sympow/datafiles/le64 yields insufficient permissions')
4749
find_sage_prompt = re.compile(r"^(\s*)sage: ", re.M)
4850
find_sage_continuation = re.compile(r"^(\s*)\.\.\.\.:", re.M)
@@ -117,6 +119,9 @@ def fake_RIFtol(*args):
117119
(lambda g, w: "Long-step" in g,
118120
lambda g, w: (glpk_simplex_warning_regex.sub('', g), w)),
119121

122+
(lambda g, w: "chained fixups" in g,
123+
lambda g, w: (chained_fixup_warning_regex.sub('', g), w)),
124+
120125
(lambda g, w: "insufficient permissions" in g,
121126
lambda g, w: (sympow_cache_warning_regex.sub('', g), w)),
122127

0 commit comments

Comments
 (0)