git.iko.soy/typeable/nixpkgs
on master help sign in
sage: fix doctest

The test is depending on the "py2" tag always being added. I patched that recently to make it possible to test sagedoc individually. Somehow I missed this doctest.

commitdb75fe73138cadea7011b59afda7b684321075d7 authorTimo Kaufmann <timokau@zoho.com> dateMon 22 Oct 2018, 14:51 (8 years ago) parent5f33fbb
1 file changed+13−4
pkgs/applications/science/math/sage/patches/Only-test-py2-py3-optional-tests-when-all-of-sage-is.patch+13−4
pkgs/applications/science/math/sage/patches/Only-test-py2-py3-optional-tests-when-all-of-sage-is.patch+13−4
@@ -1,14 +1,14 @@
1−From c8edfefbbec87ca776d3cf84ee895aac200dda40 Mon Sep 17 00:00:00 2001
1+From 8218bd4fdeb4c92de8af0d3aabec55980fc4fb3d Mon Sep 17 00:00:00 2001
22From: Timo Kaufmann <timokau@zoho.com>
33Date: Sun, 21 Oct 2018 17:52:40 +0200
44Subject: [PATCH] Only test py2/py3 optional tests when all of sage is tested
55
66---
7− src/sage/doctest/control.py | 3 ++-
8− 1 file changed, 2 insertions(+), 1 deletion(-)
7+ src/sage/doctest/control.py | 5 +++--
8+ 1 file changed, 3 insertions(+), 2 deletions(-)
99
1010diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py
11−index bf18df8b2b..b04af0e2e8 100644
11+index bf18df8b2b..935c67abf7 100644
1212--- a/src/sage/doctest/control.py
1313+++ b/src/sage/doctest/control.py
1414@@ -362,7 +362,8 @@ class DocTestController(SageObject):
@@ -21,6 +21,15 @@ index bf18df8b2b..b04af0e2e8 100644
2121
2222 self.options = options
2323
24+@@ -765,7 +766,7 @@ class DocTestController(SageObject):
25+ sage: DC = DocTestController(DD, [dirname])
26+ sage: DC.expand_files_into_sources()
27+ sage: sorted(DC.sources[0].options.optional) # abs tol 1
28+- ['guava', 'magma', 'py2']
29++ ['guava', 'magma']
30+
31+ We check that files are skipped appropriately::
32+
2433--
25342.18.1
2635