void-packages/srcpkgs/sagemath/patches/35127-fix_very_slow_test_st...

16 lines
906 B
Diff

diff --git a/src/sage/data_structures/stream.py b/src/sage/data_structures/stream.py
index f8f6dc6a186..002e925f02f 100644
--- a/src/sage/data_structures/stream.py
+++ b/src/sage/data_structures/stream.py
@@ -2090,8 +2090,8 @@ def compute_product(self, n, la):
sage: f = Stream_exact([1]) # irrelevant for this test
sage: g = Stream_function(lambda n: s[n], True, 0)
sage: h = Stream_plethysm(f, g, True, p)
- sage: B = p[2, 2, 1](sum(s[i] for i in range(7)))
- sage: all(h.compute_product(k, Partition([2, 2, 1])) == B.restrict_degree(k) for k in range(7))
+ sage: B = p[2, 2, 1](sum(p(s[i]) for i in range(7))) # long time
+ sage: all(h.compute_product(k, Partition([2, 2, 1])) == B.restrict_degree(k) for k in range(7)) # long time
True
"""
# This is the approximate order of the result