[Zope-Checkins] CVS: Zope/lib/python/OFS/tests - testCopySupport.py:1.3.18.1

Sidnei da Silva sidnei@x3ng.com.br
Wed, 14 Aug 2002 17:08:11 -0300


On Quarta 14 Agosto 2002 16:48, Martijn Pieters wrote:
| On Wed, Aug 14, 2002 at 11:28:50AM -0400, Sidnei da Silva wrote:
| > +    def testPasteSingleNotSameID( self ):
| > +    def testPasteSingleSameID( self ):
| > +    def testPasteMultiNotSameID( self ):
| > +    def testPasteMultiSameID( self ):
|
| These tests fail for me (I was having a look at running the tests with
| python -tt), with:
|
|   UnpickleableError: Cannot pickle <type 'Python Method'> objects
|
| Here is one traceback (they are all basically the same):
|
| Traceback (most recent call last):
|   File "testCopySupport.py", line 170, in testPasteMultiNotSameID
|   File "/home/mj/cvstrees/Zope25/lib/python/OFS/CopySupport.py", line 158,
| in manage_pasteObjects
|     ob=ob._getCopy(self)
|   File "/home/mj/cvstrees/Zope25/lib/python/OFS/CopySupport.py", line 403,
| in _getCopy
|     ob=container._p_jar.importFile(f)
|   File "ZODB/ExportImport.py", line 79, in importFile
|   File "ZODB/Transaction.py", line 234, in commit
|   File "ZODB/Connection.py", line 346, in commit
| UnpickleableError: Cannot pickle <type 'Python Method'> objects

Eek! Why would this happen? The exactly same tests are running fine with 2.6 
(HEAD). I cant see anything that could cause these kind of errors here. Maybe 
anyone with more experience can help, because this is the first unittest that 
i wrote for Zope itself.

[]'s

-- 
Sidnei da Silva (dreamcatcher) <sidnei@x3ng.com.br>
X3ng Web Technology <http://www.x3ng.com.br>
GNU/Linux user 257852
Debian GNU/Linux 3.0 (Sid) 2.4.18 ppc

The best way to accelerate a Macintoy is at 9.8 meters per second per second.