[Zope-Coders] Unit testing issues

Tres Seaver tseaver@zope.com
Fri, 9 Nov 2001 11:12:45 -0500 (EST)


Interestingly, when trying to fix the problem reported by Shane's
tinderbox (one I presume I introduced yesterday), I reran the tests,
and found that the OFS tests all pass on my sandbox.  I fetched a fresh
checkout of Zope, and voila, it is broken.  The two checkouts differ
only trivially;  can anyone eyeball soemthing significant here?

 [/home/tseaver/projects/Zope-fresh] $ cvs -q up -AdP
 [/home/tseaver/projects/Zope-fresh] $ cd ../Zope-head
 [/home/tseaver/projects/Zope-head] $ cvs -q up -AdP
 [/home/tseaver/projects/Zope-head] $ cd ..
 [/home/tseaver/projects] $ diff -r -u -x "*.so" -x "*.pyc" -x CVS \
                              Zope-head Zope-fresh
 diff -r -u -x *.so -x *.pyc -x CVS Zope-head/stop Zope-fresh/stop
 --- Zope-head/stop      Fri Nov  9 10:03:53 2001
 +++ Zope-fresh/stop     Fri Nov  9 10:03:40 2001
 @@ -1,2 +1,2 @@
  #! /bin/sh
 -kill `cat /home/tseaver/projects/Zope-head/var/Z2.pid`
 \ No newline at end of file
 +kill `cat /home/tseaver/projects/Zope-fresh/var/Z2.pid`
 \ No newline at end of file

I'm totally stuck trying to figure out how running the tests from two
directories which differ only by that much should have such different
results.  I have deleted and rebuilt all "*.pyc", ".o", and "*.so"
files in both trees, BTW.

I also have a separate problem:  in my sandbox, three ZEO tests blow up:

======================================================================
FAIL: checkVersionedLoadErrors (testZEO.ZEOFileStorageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/Zope-head/lib/python/ZODB/tests/VersionStorage.py", line 49, in checkVersionedLoadErrors
    self._storage.new_oid(), '')
  File "/usr/local/python2.1/lib/python2.1/unittest.py", line 266, in failUnlessRaises
    raise self.failureException, excName
AssertionError: KeyError
======================================================================
FAIL: checkGetSerial (testZEO.ZEOFileStorageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/Zope-head/lib/python/ZODB/tests/BasicStorage.py", line 169, in checkGetSerial
    self.assertRaises(KeyError, self._storage.getSerial, oid)
  File "/usr/local/python2.1/lib/python2.1/unittest.py", line 266, in failUnlessRaises
    raise self.failureException, excName
AssertionError: KeyError
======================================================================
FAIL: checkAbortOneVersionCommitTheOther (testZEO.ZEOFileStorageTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/Zope-head/lib/python/ZODB/tests/VersionStorage.py", line 332, in checkAbortOneVersionCommitTheOther
    self._storage.load, oid, '')
  File "/usr/local/python2.1/lib/python2.1/unittest.py", line 266, in failUnlessRaises
    raise self.failureException, excName
AssertionError: KeyError
----------------------------------------------------------------------

Jeremy, do you have a clue where the ZEO errors are coming from?
This is with Python 2.1.1, against the head of the 'zeo-1_0-branch'.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com