Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/sage/doctest/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,17 @@ def do_fixup(self, want, got):
pythran_numpy_warning_regex = re.compile(r'WARNING: Overriding pythran description with argspec information for: numpy\.random\.[a-z_]+')
got = pythran_numpy_warning_regex.sub('', got)
did_fixup = True

if "duplicate" in got:
# New warnings as of Sept '23, OS X 13.6, new command-line
# tools. In particular, these seem to come from ld in
# Xcode 15.
dup_rpath_regex = re.compile("ld: warning: duplicate -rpath .* ignored")
dup_lib_regex = re.compile("ld: warning: ignoring duplicate libraries: .*")
got = dup_rpath_regex.sub('', got)
got = dup_lib_regex.sub('', got)
did_fixup = True

return did_fixup, want, got

def output_difference(self, example, got, optionflags):
Expand Down