[Zope3-dev] ALL test crashing Python?

Marius Gedminas mgedmin@codeworks.lt
Fri, 22 Nov 2002 16:56:59 +0200


--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Nov 22, 2002 at 09:07:46AM -0500, Jeremy Hylton wrote:
> I ran the full test suite before I checked in the changes, so failures
> are not expected.  I tested with Python CVS from a week or two ago,
> saw 2319 test pass.
> 
> Can you be specific about the failures you saw?

Here they are.

Marius Gedminas
-- 
Bumper sticker: If you can read this, I can hit my brakes and sue you.

--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="persistence-test-failures.txt"

python2.2 test.py
Error in test testUpdateClass (Persistence.tests.testModule.TestModule)
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 122, in testUpdateClass
    mgr.update(src2)
  File "/home/users/mg/Zope3/lib/python/Persistence/Module.py", line 143, in update
    convert(self._module, replacements)
  File "/home/users/mg/Zope3/lib/python/Persistence/patch.py", line 339, in convert
    newdict = u.load()
  File "/usr/lib/python2.2/pickle.py", line 597, in load
    dispatch[key](self)
  File "/usr/lib/python2.2/pickle.py", line 848, in load_reduce
    value = apply(callable, arg_tup)
  File "/home/users/mg/Zope3/lib/python/Persistence/patch.py", line 110, in __call__
    self._replace.__newstate__(new)
  File "/home/users/mg/Zope3/lib/python/Persistence/Class.py", line 296, in __newstate__
    cls.__dict__.clear()
AttributeError: 'dict-proxy' object has no attribute 'clear'

Error in test testUpdateFunction (Persistence.tests.testModule.TestModule)
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 81, in setUp
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

Error in test testClassReload (Persistence.tests.testModule.TestModuleReload)
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 335, in setUp
    self.open()
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 348, in open
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

Error in test testModuleReload (Persistence.tests.testModule.TestModuleReload)
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 335, in setUp
    self.open()
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 348, in open
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

Error in test testCommitAndAbort (ZODB.tests.testTransaction.AllTests)
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/ZODB/tests/testTransaction.py", line 72, in testCommitAndAbort
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

convert <PersistentModule test> {}
convert <PersistentModule foo> {}
convert <PersistentModule foo> {}
convert <PersistentModule effect> {}
convert <PersistentModule A.B.C> {}
convert <PersistentModule A.B.D> {}
convert <PersistentPackage A> {}
convert <PersistentModule A.F> {}
convert <PersistentModule test> {}
convert <PersistentModule pmtest> {}
convert <PersistentModule foo> {}
convert <PersistentModule quux> {}
convert <PersistentModule bar> {}
convert <PersistentModule baz> {}
convert <PersistentModule nested> {}
convert <PersistentModule A.B.C> {}
convert <PersistentModule A.B.D> {}
convert <PersistentModule A.B.C> {}
convert <PersistentPackage A.B> {}
convert <PersistentModule A.B.C> {}
convert <PersistentModule A.Q> {}
convert <PersistentModule A.Q> {150657540: <PersistentFunction A.B.C.f>}
convert <PersistentModule pmtest> {}
convert <PersistentModule pmtest> {150686980: <descriptor Foo.__init__>, 150673068: <class 'pmtest.Foo'>, 150688196: <descriptor Foo.m>}
convert <module 'Persistence.tests.TestModule' from '/home/users/mg/Zope3/lib/python/Persistence/tests/TestModule.pyc'> {}
======================================================================
ERROR: testUpdateClass (Persistence.tests.testModule.TestModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 122, in testUpdateClass
    mgr.update(src2)
  File "/home/users/mg/Zope3/lib/python/Persistence/Module.py", line 143, in update
    convert(self._module, replacements)
  File "/home/users/mg/Zope3/lib/python/Persistence/patch.py", line 339, in convert
    newdict = u.load()
  File "/usr/lib/python2.2/pickle.py", line 597, in load
    dispatch[key](self)
  File "/usr/lib/python2.2/pickle.py", line 848, in load_reduce
    value = apply(callable, arg_tup)
  File "/home/users/mg/Zope3/lib/python/Persistence/patch.py", line 110, in __call__
    self._replace.__newstate__(new)
  File "/home/users/mg/Zope3/lib/python/Persistence/Class.py", line 296, in __newstate__
    cls.__dict__.clear()
AttributeError: 'dict-proxy' object has no attribute 'clear'

======================================================================
ERROR: testUpdateFunction (Persistence.tests.testModule.TestModule)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 81, in setUp
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

======================================================================
ERROR: testClassReload (Persistence.tests.testModule.TestModuleReload)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 335, in setUp
    self.open()
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 348, in open
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

======================================================================
ERROR: testModuleReload (Persistence.tests.testModule.TestModuleReload)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 335, in setUp
    self.open()
  File "/home/users/mg/Zope3/lib/python/Persistence/tests/testModule.py", line 348, in open
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

======================================================================
ERROR: testCommitAndAbort (ZODB.tests.testTransaction.AllTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/users/mg/Zope3/lib/python/ZODB/tests/testTransaction.py", line 72, in testCommitAndAbort
    get_transaction().commit()
  File "/home/users/mg/Zope3/lib/python/Transaction/Transaction.py", line 46, in commit
    self._manager.commit(self)
  File "/home/users/mg/Zope3/lib/python/Transaction/Manager.py", line 28, in commit
    if prepare_ok and not r.prepare(txn):
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 434, in prepare
    self.objcommit(obj, txn)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 300, in objcommit
    self.commit_store(stack.pop(), file, pickler, transaction)
  File "/home/users/mg/Zope3/lib/python/ZODB/Connection.py", line 323, in commit_store
    pickler.dump(state)
PicklingError: Can't pickle <class 'pmtest.Foo'>: it's not found as pmtest.Foo

----------------------------------------------------------------------
Ran 2325 tests in 59.170s

FAILED (errors=5)

--cNdxnHkX5QqsyA0e--