If I understand correctly, it should be important that the pickled/copied object has the same hash as the original.
Aaron Meurer On Sep 7, 2010, at 4:29 PM, smichr wrote: > In the place where the error occurs, you have a pre-pickle value, a, > and a post-pickle value b: > > b = pickle.loads(pickle.dumps(a, protocol)) > > protocol varies over 0, 1, 2; > > b is also computed with copy and deepcopy: > > b = copy(a) or b = deepcopy(b) > > The directories of a and b are computed and asserted to be equal: > > d1 = dir(a) > d2 = dir(b) > assert d1==d2 > > Whatever attributes of the di that a has which don't have a __call__ > method are tested: > a) to see that b also has this attribute > b) to see that the attribute is the same > > The items that are failing are failing because they have different > hashes. So it seems like this is something that should be ignored in > the test. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.