sagemath/sage

sage.doctest: Remove handling of sagenb

Closed this issue · 13 comments

Follow up from #28834.

See also #29754 and #29885.

CC: @fchapoton @jhpalmieri @kliem

Component: doctest framework

Author: Matthias Koeppe

Branch/Commit: da41966

Reviewer: Travis Scrimshaw

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

Commit: ad00b40

Author: Matthias Koeppe

Description changed:

--- 
+++ 
@@ -1 +1,2 @@
+Follow up from #28834.
 

New commits:

6bec225sage.doctest.forker.DocTestTask._run: Remove special support for sagenb
ad00b40sage.doctest, src/bin/sage-runtests: Remove handling of sagenb

Reviewer: Travis Scrimshaw

comment:3

This for loop is now redundant:

        for o in ("all",):
            if o in opt:
                raise ValueError("You cannot run gdb/valgrind on the whole sage%s library"%("" if o == "all" else "nb"))

and the error message is no longer needs the choice.
Other than that LGTM.

Description changed:

--- 
+++ 
@@ -1,2 +1,3 @@
 Follow up from #28834.
 
+See also #29754 and #29885.

Changed commit from ad00b40 to da41966

Branch pushed to git repo; I updated commit sha1. New commits:

da41966src/sage/doctest/control.py: Simplify singleton loop
comment:5

Thank you. LGTM.

comment:6

Thanks!