[ZODB-Dev] Unit test failure

Jeffrey P Shell jeffrey@zope.com
Wed, 8 Aug 2001 15:11:20 -0400


In doing some cleanup work on unit tests in the Zope-2_4-branch, I 
get the following failure in the ZODB tests (test ran from the Zope 
root):

-----CUT
python2.1 utilities/testrunner.py -a
Running: 
/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/testFileStorage.
py

..........................F....................
======================================================================
FAIL: checkPackAllRevisions (testFileStorage.FileStorageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
   File 
"/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/PackableStorage.
py", line 128, in checkPackAllRevisions
     self._storage.pack(time.time(), referencesf)
   File 
"/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/FileStorage.
py", line 1264, in pack
     error('Bad reference to %s', `(oid,v)`)
   File 
"/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/FileStorage.
py", line 214, in error
     LOG('ZODB FS',ERROR,"%s ERROR: %s\n" % (packed_version, 
(message % data)))
   File 
"/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/zLOG.py", 
line 213, in LOG
     log_write(subsystem, severity, summary, detail, error)
   File 
"/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/Testing/common.
py", line 53, in log_write
     assert 0, "%s(%s): %s" % (subsystem, severity, summary)
AssertionError: ZODB FS(200): FS21 ERROR: Bad reference to 
('\x00\x00\x00\x00\x00\x00\x00\x00', None)
--------END CUT

Curiously, no failure occurs when run with the testrunner -d option.

--------CUT
cd /mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/
python2.1 utilities/testrunner.py -d lib/python/ZODB/
Running: 
/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/testFileStorage.
py

...............................................
----------------------------------------------------------------------
Ran 47 tests in 0.686s

OK
Running: 
/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/testTransaction.
py

No test suite found in file:
/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/testTransaction.
py

Running: 
/mnt/korakhome/jeffrey/SoftwareHomes/2.4.Branch/lib/python/ZODB/tests/testZODB.
py

..
----------------------------------------------------------------------
Ran 2 tests in 0.443s

OK
-------END CUT

I don't know if this is a bug in testrunner (the -d option didn't 
even work for me until very recently)