Skip to content

Commit

Permalink
Tune down a very slow doctest
Browse files Browse the repository at this point in the history
This single test used to take ~ 200s.
Now it takes ~ 1.5s and I mark it long time.
  • Loading branch information
tornaria committed Feb 14, 2023
1 parent c000c95 commit a3b1dcd
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(s[i] for i in range(5))) # long time
sage: all(h.compute_product(k, Partition([2, 2, 1])) == B.restrict_degree(k) for k in range(5)) # long time
True

This comment has been minimized.

Copy link
@mantepse

mantepse Feb 14, 2023

Collaborator

Please remove the # long time markers and change line 2093 to compute p(s[i]) instead of s[i].

"""
# This is the approximate order of the result
Expand Down

0 comments on commit a3b1dcd

Please sign in to comment.