Skip to content

sage.doctest.control: Exclude doctests in files via file directives ''# sage.doctest: optional - xyz' #30778

@mkoeppe

Description

@mkoeppe

When a file is marked # sage.doctest: optional - xyz, we omit it from doctesting unless --optional=xyz is given.

This will save us from having to add lots of # optional - ... tags to files in the course of modularization (#29705)

We do this by extending sage.doctest.control.skipfile, which already parses files for # nodoctest file directives.

Previous related proposals/discussions: #3260, #20427

Also related: #30746

CC: @simon-king-jena @kiwifb @roed314 @saraedum @nthiery @videlec

Component: doctest framework

Keywords: sd111

Author: Matthias Koeppe, John Palmieri

Branch/Commit: 5cc1288

Reviewer: John Palmieri, Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30778

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions