Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
adapt doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Sep 2, 2022
1 parent d75ac13 commit 293b439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/sage/combinat/species/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,10 @@ def algebraic_equation_system(self):
::
sage: sorted(B.digraph().vertex_iterator(), key=str)
[Combinatorial species,
Product of (Combinatorial species) and (Combinatorial species),
[Combinatorial species with min=1,
Product of (Combinatorial species with min=1) and (Combinatorial species with min=1),
Singleton species,
Sum of (Singleton species) and (Product of (Combinatorial species) and (Combinatorial species))]
Sum of (Singleton species) and (Product of (Combinatorial species with min=1) and (Combinatorial species with min=1))]
::
Expand Down
2 changes: 1 addition & 1 deletion src/sage/combinat/species/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def __iter__(self):
try:
if self.cardinality() == 0:
return iter([])
except RuntimeError:
except TypeError:
raise NotImplementedError

return getattr(self._species, self._iterator)(self._structure_class, self._labels)
Expand Down

0 comments on commit 293b439

Please sign in to comment.