Hi Mark!
On Sun, Mar 16, 2014 at 04:29:23PM -0400, Mark Shimozono wrote:
> Is there an easy way to get rid of the following TestSuite failures?
> Or does it require an overhaul of how sage handles morphisms?
> I understand why the first two tests fail.
>
> --Mark
>
> sage: F=CombinatorialFreeModule(ZZ,[1])
> sage: def on_basis(x):
> ... return x
> sage: f = F.module_morphism(on_basis=on_basis, codomain=F,
> category=ModulesWithBasis(ZZ))
> sage: f._test_category()
> Traceback (most recent call last):
> ...
> AssertionError: False is not true
Yeah, that's indeed the warning around line 1258 of
sage.categories.modules_with_basis which is for #10668. For the
moment, just skip this test ...
> sage: f._test_nonzero_equal()
> Traceback (most recent call last):
> ...
> NotImplementedError
Testing if a morphism defined by a function is zero is indeed hard :-)
Just skip it.
> sage: f._test_pickling()
> Traceback (most recent call last):
> ...
> PicklingError: Can't pickle <type 'function'>: attribute lookup
> __builtin__.function failed
For this one, you can fake ``on_basis'' to be picklable using:
sage: import __main__; __main__.on_basis = on_basis
(grep for 'import __main__' for a bunch of examples)
Cheers,
Nicolas
--
Nicolas M. ThiƩry "Isil" <[email protected]>
http://Nicolas.Thiery.name/
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.