-
-
Notifications
You must be signed in to change notification settings - Fork 699
Closed
Description
Thanks to #7448 and #8452, on can trace unpicklable class throughout sage. Here is one:
sage: sage: W = Words()
sage: sage: A = W._python_object_alphabet()
sage: TestSuite(A).run(verbose=True)
running ._test_pickling() . . . fail
Traceback (most recent call last):
File "/mnt/usb1/scratch/hivert/sage-4.3.4.alpha0-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/sage_unittest.py", line 268, in run
test_method(tester = tester)
File "/mnt/usb1/scratch/hivert/sage-4.3.4.alpha0-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/sage_unittest.py", line 484, in _test_pickling
tester.assertEqual(loads(dumps(self._instance)), self._instance)
File "sage_object.pyx", line 792, in sage.structure.sage_object.dumps (sage/structure/sage_object.c:8367)
PicklingError: Can't pickle <class 'sage.combinat.words.words._python_object_alphabet'>: attribute lookup sage.combinat.words.words._python_object_alphabet failed
------------------------------------------------------------
The following tests failed: _test_pickling
Component: combinatorics
Keywords: pickling nested classes
Author: Florent Hivert
Reviewer: Sébastien Labbé
Merged: sage-4.3.4.rc0
Issue created by migration from https://trac.sagemath.org/ticket/8475