[Zope-Coders] Importing BTrees fails in 2.5 branch
Andreas Jung
andreas@andreas-jung.com
Tue, 24 Sep 2002 18:33:11 +0200
I forgot to mention that I noticed this bug when I ran the
testrunner with -d lib/python/PluginIndexes/PathIndex.
Since the unit tests for the PathIndex don't use the ZODB
but only the BTree modules they run in earlier times. I
assume I has to do with the backport of the ZODB from 2.6
to 2.5 for some reasons.
Andreas
--On Dienstag, 24. September 2002 12:21 -0400 Jeremy Hylton
<jeremy@zope.com> wrote:
> BTrees imports a module named cPersistence. This import will only
> succeed if ZODB is imported first. The __init__ in the ZODB package
> adds cPersistence to sys.modules.
>
> As far as I can tell, BTrees has always worked this way. Are you sure
> you're doing exactly the same thing to test with the different
> versions of Zope?
>
> Jeremy
>
>