Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In doctesting, ignore two ld warnings from recent OS X: #36337

Closed
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 @@
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

Check warning on line 1663 in src/sage/doctest/parsing.py

View check run for this annotation

Codecov / codecov/patch

src/sage/doctest/parsing.py#L1659-L1663

Added lines #L1659 - L1663 were not covered by tests

return did_fixup, want, got

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