Hi Kwankyu, The _test_category issue is something that shows up with every map (and I think homset). This is because the parent (i.e., the homset) does not (usually) have a single Element class, but the _test_category is checking that the map is a subclass of the element_class that is dynamically created by the category framework. The standard idiom is just to skip these tests in the TestSuite() call.
For picking, you probably just need to implement a __reduce__ method for the map. Best, Travis On Wednesday, March 13, 2019 at 12:45:09 AM UTC+10, Kwankyu Lee wrote: > > Hi, > > I thought the idiom to define a map is: > > from sage.categories.map import Map > from sage.categories.homset import Hom > from sage.categories.fields import Fields > > class Derivation(Map): > def __init__(self, field): > Map.__init__(self, Hom(field, field, Fields())) > > But then the last two tests fail: > > d = Derivation(GF(2)) > d._test_category() > d._test_pickling() > > What did I do wrong? Or what should I do more? > > Thank you for attention in advance. > > > > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.