Skip to content

Invalid rST input in tests/test_intl/test_intl.py::test_text_figure_captions. #14508

Description

@gmilde

Describe the bug

The content model for Docutils <figure> elements mandates an <image> followed by either a <caption>, a <legend> or both.
Starting in Docutils 1.0, the rST parser issues a warning, if a figure directive is missing both caption and legend.

This leads to test failures for "Docutils HEAD" and "LaTeX".

Unfortunately, I cannot find where tests/test_intl/test_intl.py::test_text_figure_captions calls the rST parser or why it triggers a "no caption" warnign when it tests "text_figure_captions", so I cannot provide a patch.

How to Reproduce

see, e.g., #14400 , #14507 #14499

Environment Information

CI tests with the Docutils repository HEAD.

Sphinx extensions

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions