[ZODB-Dev] Revisiting the ConflictError patch

Jeremy Hylton jeremy@zope.com
Thu, 20 Sep 2001 14:18:59 -0400 (EDT)


>>>>> "GW" == Greg Ward <gward@mems-exchange.org> writes:

  GW> On 19 September 2001, Barry A. Warsaw said:
  >> Have you run the test suite after applying your patch?  (I
  >> haven't had time yet.)  If it passes then I'm +1 -- any breakage
  >> this might cause exposes weaknesses in our test suite. :)

  GW> Umm, no.  Where *is* the test suite?  I found
  GW> StandaloneZODB/test.py, but running it bombs:

How did you run it?  I've only tried it by doing the following:

~/src/StandaloneZODB> python setup.py build
[...]
~/src/StandaloneZODB> python test.py

I've never had it fail this way, but can imagine that it isn't robust
enough to be invoked differently.

  GW>   No module named tests.testBTrees
  GW>   ['../ExtensionClass/build/lib.linux-i686-2.1',
  GW>   'lib.linux-i686-2.1', 'lib', '', '/home/gward/lib/python',
  GW>   '/www/python/lib/python2.1',
  GW>   '/www/python/lib/python2.1/plat-linux2',
  GW>   '/www/python/lib/python2.1/lib-tk',
  GW>   '/www/python/lib/python2.1/lib-dynload',
  GW>   '/www/python/lib/python2.1/site-packages',
  GW>   '/www/python/lib/python2.1/site-packages/PIL',
  GW>   '/www/mxpython'] Traceback (most recent call last):
  GW>     File "test.py", line 115, in ?  File "test.py", line 93, in
  GW>     main File "test.py", line 74, in package_import
  GW>   ImportError: No module named tests.testBTrees

  GW> Where is the "tests" package?

There is a BTrees.tests.testBTrees module.  It looks like the test
script has become confused about what modules are test modules.

Jeremy