Skip to content

Commit

Permalink
Fix a very slow doctest in data_structures/stream.py
Browse files Browse the repository at this point in the history
This single test used to take ~ 200s, now it takes ~ 0.5s.
Marked long time since the other 769 tests together take < 1s.
  • Loading branch information
tornaria committed Feb 14, 2023
1 parent c000c95 commit 2bdb515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/data_structures/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bdb515

Please sign in to comment.