Commit 94ece874 authored by Jeremy Hylton's avatar Jeremy Hylton

Decree that abortVersion() should not change the non-version serialno.

Remove checkNewSerialOnAbortVersion and checkNewSerialOnCommitVersion.
They duplicate checkCommitVersionSerialno and checkAbortVersionSerialno.
parent 80e44ec5
...@@ -238,35 +238,6 @@ class VersionStorage: ...@@ -238,35 +238,6 @@ class VersionStorage:
finally: finally:
self._storage.tpc_abort(t) self._storage.tpc_abort(t)
def checkNewSerialOnAbortVersion(self):
eq = self.assertEqual
oid, version = self._setup_version()
data, vserial = self._storage.load(oid, version)
data, nserial = self._storage.load(oid, '')
self._abortVersion(version)
data, serial = self._storage.load(oid, version)
self.failUnless(serial != vserial and serial != nserial,
"New serial, %r, should be different from the old "
"version, %r, and non-version, %r, serials."
% (serial, vserial, nserial))
def checkNewSerialOnCommitVersion(self):
eq = self.assertEqual
oid, version = self._setup_version()
data, vserial = self._storage.load(oid, version)
data, nserial = self._storage.load(oid, '')
self._commitVersion(version, '')
data, serial = self._storage.load(oid, '')
self.failUnless(serial != vserial and serial != nserial,
"New serial, %r, should be different from the old "
"version, %r, and non-version, %r, serials."
% (serial, vserial, nserial))
def checkNewSerialOnCommitVersionToVersion(self): def checkNewSerialOnCommitVersionToVersion(self):
eq = self.assertEqual eq = self.assertEqual
oid, version = self._setup_version() oid, version = self._setup_version()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment