Skip to content

Mark random symbolic expression doctests with #random #12507

@benjaminfjones

Description

@benjaminfjones

Three doctests in sage/symbolic/random_tests.py change expected value whenever a new symbolic function is added to Sage. In particular,

sage: [f for (one,f,arity) in _mk_full_functions()]
sage: random_expr(50, nvars=3, coeff_generator=CDF.random_element)
sage: random_expr(5, verbose=True)

This makes adding symbolic functions to the Sage library somewhat painful, especially if more than one such patch is contributed per Sage release.

The patch provided marks the three particular random tests using #random so that the doctest framework ignores the output from such tests.

Apply: attachment: trac_12507_v2.patch.

CC: @burcin

Component: symbolics

Keywords: random, symbolic

Author: Benjamin Jones

Reviewer: Burcin Erocal

Merged: sage-5.0.beta5

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions