1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/applications/science/math/sage/patches/Only-test-py2-py3-optional-tests-when-all-of-sage-is.patch

27 lines
900 B
Diff
Raw Normal View History

2020-10-22 09:20:17 +01:00
From f5ea42a7aaed7611fb55b65897b9fcf2b7bcf97e Mon Sep 17 00:00:00 2001
2018-10-21 16:55:53 +01:00
From: Timo Kaufmann <timokau@zoho.com>
Date: Sun, 21 Oct 2018 17:52:40 +0200
Subject: [PATCH] Only test py2/py3 optional tests when all of sage is tested
---
2020-10-22 09:20:17 +01:00
src/sage/doctest/control.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
2018-10-21 16:55:53 +01:00
diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py
2020-10-22 09:20:17 +01:00
index 2d93841e50..6d156e29a1 100644
2018-10-21 16:55:53 +01:00
--- a/src/sage/doctest/control.py
+++ b/src/sage/doctest/control.py
2020-10-22 09:20:17 +01:00
@@ -375,7 +375,8 @@ class DocTestController(SageObject):
2018-10-21 16:55:53 +01:00
if not optionaltag_regex.search(o):
raise ValueError('invalid optional tag {!r}'.format(o))
- options.optional |= auto_optional_tags
+ if "sage" in options.optional:
+ options.optional |= auto_optional_tags
self.options = options
--
2020-10-22 09:20:17 +01:00
2.28.0
2018-10-21 16:55:53 +01:00