This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients brett.cannon, ncoghlan, r.david.murray
Date 2009-10-18.01:14:20
SpamBayes Score 1.6359136e-13
Marked as misclassified No
Message-id <1255828463.78.0.430609801319.issue7164@psf.upfronthosting.co.za>
In-reply-to
Content
After r75467, which changed test_imp and test_import to use CleanImport,
the various pickle tests fail (all in the same common test, I believe).
 The error looks like this:

Traceback (most recent call last):
  File "/home/rdmurray/python/trunk/Lib/test/pickletester.py", line 623,
in test_structseq
    s = self.dumps(t, proto)
  File "/home/rdmurray/python/trunk/Lib/test/test_pickle.py", line 33,
in dumps
    p.dump(arg)
  File "/home/rdmurray/python/trunk/Lib/pickle.py", line 224, in dump
    self.save(obj)
  File "/home/rdmurray/python/trunk/Lib/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/home/rdmurray/python/trunk/Lib/pickle.py", line 400, in save_reduce
    save(func)
  File "/home/rdmurray/python/trunk/Lib/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/home/rdmurray/python/trunk/Lib/pickle.py", line 753, in save_global
    (obj, module, name))
PicklingError: Can't pickle <function _make_stat_result at 0xb7a09494>:
it's not the same object as os._make_stat_result

I don't have enough pickle-foo to understand what it is trying to do
here or what about CleanImport is messing it up.
History
Date User Action Args
2009-10-18 01:14:24r.david.murraysetrecipients: + r.david.murray, brett.cannon, ncoghlan
2009-10-18 01:14:23r.david.murraysetmessageid: <1255828463.78.0.430609801319.issue7164@psf.upfronthosting.co.za>
2009-10-18 01:14:22r.david.murraylinkissue7164 messages
2009-10-18 01:14:20r.david.murraycreate