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

Commit

Permalink
Trac 14793: Add a missing doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-king-jena committed Dec 28, 2013
1 parent ea3ecfb commit e2d2f16
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/sage/categories/homset.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,22 @@ def __reduce__(self):
"""
Pickling, using the cache of the :func:`~sage.categories.homset.Hom` function.
TESTS::
sage: H = Hom(QQ^2, QQ^3)
sage: loads(H.dumps()) is H
True
Homsets of non-unique parents are non-unique as well::
sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
sage: G is loads(dumps(G))
False
sage: H = Hom(G,G)
sage: H is loads(dumps(H))
False
sage: H == loads(dumps(H))
True
"""
return Hom, (self._domain, self._codomain, self.__category)
Expand Down

0 comments on commit e2d2f16

Please sign in to comment.