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

Document, lint, and fix placement of magic comments in multiline doctests #35181

Merged
merged 14 commits into from
Apr 1, 2023

Commits on Mar 27, 2023

  1. Trac sagemath#33091: fix mislabeled multiline "long time" tests.

    There are a few tests in the sage library that span multiple lines and
    that were intended to be marked as "long time", but were not due to an
    implementation detail. As it stands, it is the FIRST line of a doctest
    that needs to be marked "long time", and not the last.
    
    This commit fixes a few doctests whose last (but not first) lines were
    tagged, updating them instead to bear the "# long time" tag on each
    line. This is overkill, but will save us time in the event that the
    parser is ever changed.
    orlitzky authored and mkoeppe committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    0888f7a View commit details
    Browse the repository at this point in the history
  2. src/doc/en/developer/coding_basics.rst: Explain where doctest markers…

    … go in multiline tests
    mkoeppe committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    6ca1f95 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    297cc2e View commit details
    Browse the repository at this point in the history
  4. git grep -E -l '[.][.][.][.]:.*#' | xargs sed -E -i.bak '/^ *[.][.][.…

    …][.].*#/s/ *# *(arb216|arb218|py2|py3|long time|not implemented|not tested|known bug|optional|indirect doctest).*//'
    mkoeppe committed Mar 27, 2023
    Configuration menu
    Copy the full SHA
    9cc7c19 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    32c910f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f660705 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    7dd8336 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    78608c6 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9377f4c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    7d0b783 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    32c9b63 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    116774e View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    884cece View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2861163 View commit details
    Browse the repository at this point in the history