[ZODB-Dev] ZODB3 3.3 a2 unittests on freebsd

Christoph Devenoges zodb at devenoges.com
Wed Jan 7 17:26:45 EST 2004


++ Jeremy Hylton wrote on Wed, Jan 07, 2004 at 03:47:24PM -0500 :
> On Wed, 2004-01-07 at 15:44, Christoph Devenoges wrote:
> You're actually the third person to run into this problem.  It appears
> to be caused by having a previous version of zdaemon installed, either
> in site-packages or in some directory on your PYTHONPATH.
> 
> If that doesn't pan out, edit the file zdaemon/tests/parent.py and
> comment out the call to shutup().  With that call ommitted, you should
> see a traceback from the spawned process.
> 
ok removed old zdeamon and commented out shutup()

which gives

# python2.3 test.py


Error in test checkPackWhileWriting
(ZODB.tests.testFileStorage.FileStorageTests)
Traceback (most recent call last):
  File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/tests/PackableStorage.py",
line 204, in checkPackWhileWriting
    self._PackWhileWriting(pack_now=0)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/tests/PackableStorage.py",
line 184, in _PackWhileWriting
    db.pack(packt)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/DB.py",
line 528, in pack
    try: self._storage.pack(t,referencesf)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/FileStorage.py",
line 1329, in pack
    opos = p.pack()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 445, in pack
    self.gc.findReachable()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 227, in findReachable
    self.findReachableFromFuture()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 302, in findReachableFromFuture
    self.checkTxn(th, pos)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/format.py",
line 248, in checkTxn
    self.fail(pos, "transaction with checkpoint flag set")
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/format.py",
line 240, in fail
    raise CorruptedError(s)
    CorruptedError: FileStorageTests.fs:32481:transaction with
checkpoint flag set

Exception in thread Thread-81:
Traceback (most recent call last):
  File "/usr/local/lib/python2.3/threading.py", line 436, in __bootstrap
      self.run()
        File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/tests/PackableStorage.py",
line 521, in run
    get_transaction().commit()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/Transaction.py",
line 254, in commit
    self._cleanup(objects, ncommitted, jars, subjars)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/Transaction.py",
line 232, in commit
    self._commit_begin(jars, subjars, subtransaction)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/Transaction.py",
line 344, in _commit_begin
    jar.tpc_begin(self)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/Connection.py",
line 605, in tpc_begin
    self._storage.tpc_begin(transaction)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/BaseStorage.py",
line 156, in tpc_begin
    self._clear_temp()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/FileStorage.py",
line 836, in _clear_temp
    self._tfile.seek(0)
    ValueError: I/O operation on closed file
    
    Failure in test testRunIgnoresParentSignals
(zdaemon.tests.testzdrun.ZDaemonTests)
Traceback (most recent call last):
  File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/zdaemon/tests/testzdrun.py",
line 227, in testRunIgnoresParentSignals
    self.assert_(len(params) > 1, repr(response))
      File "/usr/local/lib/python2.3/unittest.py", line 268, in
failUnless
    if not expr: raise self.failureException, msg
    AssertionError: ''
    

======================================================================
ERROR: checkPackWhileWriting
(ZODB.tests.testFileStorage.FileStorageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/tests/PackableStorage.py",
line 204, in checkPackWhileWriting
    self._PackWhileWriting(pack_now=0)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/tests/PackableStorage.py",
line 184, in _PackWhileWriting
    db.pack(packt)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/DB.py",
line 528, in pack
    try: self._storage.pack(t,referencesf)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/FileStorage.py",
line 1329, in pack
    opos = p.pack()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 445, in pack
    self.gc.findReachable()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 227, in findReachable
    self.findReachableFromFuture()
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/fspack.py",
line 302, in findReachableFromFuture
    self.checkTxn(th, pos)
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/format.py",
line 248, in checkTxn
    self.fail(pos, "transaction with checkpoint flag set")
      File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/ZODB/FileStorage/format.py",
line 240, in fail
    raise CorruptedError(s)
    CorruptedError: FileStorageTests.fs:32481:transaction with
checkpoint flag set

======================================================================
FAIL: testRunIgnoresParentSignals (zdaemon.tests.testzdrun.ZDaemonTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/mnt/ibm60/shardBackup/tmp/python/ZODB3-3.3a2/build/lib.freebsd-5.1-RELEASE-p11-i386-2.3/zdaemon/tests/testzdrun.py",
line 227, in testRunIgnoresParentSignals
    self.assert_(len(params) > 1, repr(response))
      File "/usr/local/lib/python2.3/unittest.py", line 268, in
failUnless
    if not expr: raise self.failureException, msg
    AssertionError: ''
    

----------------------------------------------------------------------
Ran 1210 tests in 650.925s

FAILED (failures=1, errors=1)



More information about the ZODB-Dev mailing list