[Zope-Checkins] CVS: StandaloneZODB/ZODB/tests - BasicStorage.py:1.18

Barry Warsaw barry@wooz.org
Thu, 16 May 2002 16:02:37 -0400


Update of /cvs-repository/StandaloneZODB/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv20438

Modified Files:
	BasicStorage.py 
Log Message:
checkTwoArgBegin(): Change the explicit tid that gets stored so that
the Standby storage version of the test has a hope of succeeding.
That storage ignores non-sensically out-of-sequence tids so as written
this test wouldn't have passed until after 3220-07-29 10:18:09.882353
<methuselah wink>.

We'll use a tid that we know is earlier than now.


=== StandaloneZODB/ZODB/tests/BasicStorage.py 1.17 => 1.18 ===
         # XXX how standard is three-argument tpc_begin()?
         t = Transaction()
-        tid = chr(42) * 8
+        tid = '\0\0\0\0\0psu'
         self._storage.tpc_begin(t, tid)
         oid = self._storage.new_oid()
         data = zodb_pickle(MinPO(8))