Skip to content

"sage -coverage" should not care about functions which are local to other functions/methods #877

@sagetrac-cwitty

Description

@sagetrac-cwitty

Currently, if you have something like:

def foo():
    def bar():
        pass
    pass

then "sage -coverage" will complain that bar() has no docstring or doctests. However, such functions cannot be (directly) doctested, so that warning is invalid. In my opinion, bar() should not be required to have a docstring either.

Component: documentation

Author: John Palmieri

Reviewer: William Stein, Harald Schilly

Merged: Sage 4.1.1.alpha1

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions