Comment #7 on issue 1198 by asmeurer: pickle does not work for Function
http://code.google.com/p/sympy/issues/detail?id=1198
But if you do that and remove the XFAIL from the relevant tests in
test_pickle.py, you get this:
______ sympy/utilities/tests/test_pickling.py:test_core_dynamicfunctions
_______
File "/users/aaronmeurer/documents/python/sympy/sympy-scratch/sympy/utilities/tests/test_pickling.py",
line 124, in test_core_dynamicfunctions
check(f)
File "/users/aaronmeurer/documents/python/sympy/sympy-scratch/sympy/utilities/tests/test_pickling.py",
line 44, in check
b = pickle.loads(pickle.dumps(a, protocol))
File "/sw/lib/python2.7/pickle.py", line 1374, in dumps
Pickler(file, protocol).dump(obj)
File "/sw/lib/python2.7/pickle.py", line 224, in dump
self.save(obj)
File "/sw/lib/python2.7/pickle.py", line 295, in save
self.save_global(obj)
File "/sw/lib/python2.7/pickle.py", line 739, in save_global
module = whichmodule(obj, name)
File "/sw/lib/python2.7/pickle.py", line 817, in whichmodule
if name != '__main__' and getattr(module, funcname, None) is func:
File "/sw/lib/python2.7/site-packages/py/_apipkg.py", line 159, in
__getattribute__
return getattr(getmod(), name)
File "/sw/lib/python2.7/site-packages/py/_apipkg.py", line 144, in getmod
x = importobj(modpath, None)
File "/sw/lib/python2.7/site-packages/py/_apipkg.py", line 37, in
importobj
module = __import__(modpath, None, None, ['__doc__'])
ImportError: No module named pytest
So I give up.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.