Just as a heads-up because I don't know how much testing ever gets done on OS X: Running the tests on the current ZODB trunk using a self.built Python 2.4.2 on OS X (10.4.3) the following test fails:

------------------------------------
Failure in test test_must_use_consistent_connections (ZODB.tests.testcrossdatabasereferences) Failed doctest test for ZODB.tests.testcrossdatabasereferences.test_must_use_consistent_connecti ons File "src/ZODB/tests/testcrossdatabasereferences.py", line 29, in test_must_use_consistent_connections


----------------------------------------------------------------------
File "src/ZODB/tests/testcrossdatabasereferences.py", line 55, in ZODB.tests.testcrossdatabasereferences.test_must_use_consistent_connecti ons
Failed example:
    tm.commit() # doctest: +NORMALIZE_WHITESPACE
Expected:
    Traceback (most recent call last):
    ...
    InvalidObjectReference: Attempt to store a reference to an object
    from a separate onnection to the same database or multidatabase
Got:
    Traceback (most recent call last):
      File "src/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
File "<doctest ZODB.tests.testcrossdatabasereferences.test_must_use_consistent_connecti ons[13]>", line 1, in ?
        tm.commit() # doctest: +NORMALIZE_WHITESPACE
      File "src/transaction/_manager.py", line 96, in commit
        return self.get().commit(sub, deprecation_wng=False)
      File "src/transaction/_transaction.py", line 380, in commit
        self._saveCommitishError() # This raises!
      File "src/transaction/_transaction.py", line 378, in commit
        self._commitResources()
File "src/transaction/_transaction.py", line 433, in _commitResources
        rm.commit(self)
      File "src/ZODB/Connection.py", line 481, in commit
        self._commit(transaction)
      File "src/ZODB/Connection.py", line 523, in _commit
        self._store_objects(ObjectWriter(obj), transaction)
      File "src/ZODB/Connection.py", line 550, in _store_objects
        p = writer.serialize(obj)  # This calls __getstate__ of obj
      File "src/ZODB/serialize.py", line 407, in serialize
        return self._dump(meta, obj.__getstate__())
      File "src/ZODB/serialize.py", line 416, in _dump
        self._p.dump(state)
      File "src/ZODB/serialize.py", line 341, in persistent_id
        raise InvalidObjectReference(
InvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase
----------------------------------------------------------------------
File "src/ZODB/tests/testcrossdatabasereferences.py", line 71, in ZODB.tests.testcrossdatabasereferences.test_must_use_consistent_connecti ons
Failed example:
    tm.commit() # doctest: +NORMALIZE_WHITESPACE
Expected:
    Traceback (most recent call last):
    ...
    InvalidObjectReference: Attempt to store a reference to an object
    from a separate onnection to the same database or multidatabase
Got:
    Traceback (most recent call last):
      File "src/zope/testing/doctest.py", line 1256, in __run
        compileflags, 1) in test.globs
File "<doctest ZODB.tests.testcrossdatabasereferences.test_must_use_consistent_connecti ons[19]>", line 1, in ?
        tm.commit() # doctest: +NORMALIZE_WHITESPACE
      File "src/transaction/_manager.py", line 96, in commit
        return self.get().commit(sub, deprecation_wng=False)
      File "src/transaction/_transaction.py", line 380, in commit
        self._saveCommitishError() # This raises!
      File "src/transaction/_transaction.py", line 378, in commit
        self._commitResources()
File "src/transaction/_transaction.py", line 433, in _commitResources
        rm.commit(self)
      File "src/ZODB/Connection.py", line 481, in commit
        self._commit(transaction)
      File "src/ZODB/Connection.py", line 523, in _commit
        self._store_objects(ObjectWriter(obj), transaction)
      File "src/ZODB/Connection.py", line 550, in _store_objects
        p = writer.serialize(obj)  # This calls __getstate__ of obj
      File "src/ZODB/serialize.py", line 407, in serialize
        return self._dump(meta, obj.__getstate__())
      File "src/ZODB/serialize.py", line 416, in _dump
        self._p.dump(state)
      File "src/ZODB/serialize.py", line 341, in persistent_id
        raise InvalidObjectReference(
InvalidObjectReference: Attempt to store a reference to an object from a separate connection to the same database or multidatabase
------------------------------------------------

jens

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to