Skip to content

Commit

Permalink
Filter out R warnings
Browse files Browse the repository at this point in the history
These are causing some doctest failures after sagemath#35396
  • Loading branch information
antonio-rojas committed Jun 27, 2024
1 parent 543f8d6 commit db5bf6c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/sage/doctest/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,12 @@ def do_fixup(self, want, got):
got = ld_pie_warning_regex.sub('', got)
did_fixup = True

if "R[write to console]" in got:
# Supress R warnings
r_warning_regex = re.compile(r'R\[write to console\]:.*')
got = r_warning_regex.sub('', got)
did_fixup = True

return did_fixup, want, got

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

0 comments on commit db5bf6c

Please sign in to comment.