[Zodb-checkins] CVS: ZODB3/ZEO/tests - testZEO.py:1.75.10.1
testMonitor.py:1.7.10.1 speed.py:1.9.102.1
multi.py:1.10.100.1 auth_plaintext.py:1.4.10.1
CommitLockTests.py:1.15.10.1
Jeremy Hylton
cvs-admin at zope.org
Tue Nov 25 16:10:08 EST 2003
Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv1135/ZEO/tests
Modified Files:
Tag: Zope-2_8-devel-branch
testZEO.py testMonitor.py speed.py multi.py auth_plaintext.py
CommitLockTests.py
Log Message:
Merge ZEO changes from zodb33-devel-branch.
=== ZODB3/ZEO/tests/testZEO.py 1.75 => 1.75.10.1 ===
--- ZODB3/ZEO/tests/testZEO.py:1.75 Thu Oct 2 14:17:21 2003
+++ ZODB3/ZEO/tests/testZEO.py Tue Nov 25 16:09:37 2003
@@ -262,10 +262,6 @@
def test_suite():
- # shutup warnings about mktemp
- import warnings
- warnings.filterwarnings("ignore", "mktemp")
-
suite = unittest.TestSuite()
for klass in test_classes:
sub = unittest.makeSuite(klass, "check")
=== ZODB3/ZEO/tests/testMonitor.py 1.7 => 1.7.10.1 ===
=== ZODB3/ZEO/tests/speed.py 1.9 => 1.9.102.1 ===
--- ZODB3/ZEO/tests/speed.py:1.9 Thu Sep 5 15:28:07 2002
+++ ZODB3/ZEO/tests/speed.py Tue Nov 25 16:09:37 2003
@@ -46,12 +46,12 @@
##sys.path.insert(0, os.getcwd())
import ZODB, ZODB.FileStorage
-import Persistence
+import persistent
import ZEO.ClientStorage, ZEO.StorageServer
from ZEO.tests import forker
from ZODB.POSException import ConflictError
-class P(Persistence.Persistent):
+class P(persistent.Persistent):
pass
fs_name = "zeo-speed.fs"
=== ZODB3/ZEO/tests/multi.py 1.10 => 1.10.100.1 ===
--- ZODB3/ZEO/tests/multi.py:1.10 Thu Sep 26 11:23:08 2002
+++ ZODB3/ZEO/tests/multi.py Tue Nov 25 16:09:37 2003
@@ -15,8 +15,8 @@
# XXX This code is currently broken.
import ZODB, ZODB.DB, ZODB.FileStorage, ZODB.POSException
-import Persistence
-import PersistentMapping
+import persistent
+import persistent.mapping
from ZEO.tests import forker
import asyncore
@@ -32,7 +32,7 @@
CONNECT_DELAY = 0.1
CLIENT_CACHE = '' # use temporary cache
-class Record(Persistence.Persistent):
+class Record(persistent.Persistent):
def __init__(self, client=None, value=None):
self.client = client
self.value = None
@@ -41,7 +41,7 @@
def set_next(self, next):
self.next = next
-class Stats(Persistence.Persistent):
+class Stats(persistent.Persistent):
def __init__(self):
self.begin = time.time()
self.end = None
@@ -57,7 +57,7 @@
db = ZODB.DB(fs)
root = db.open().root()
- root["multi"] = PersistentMapping.PersistentMapping()
+ root["multi"] = persistent.mapping.PersistentMapping()
get_transaction().commit()
return fs
=== ZODB3/ZEO/tests/auth_plaintext.py 1.4 => 1.4.10.1 ===
--- ZODB3/ZEO/tests/auth_plaintext.py:1.4 Thu Oct 2 18:14:03 2003
+++ ZODB3/ZEO/tests/auth_plaintext.py Tue Nov 25 16:09:37 2003
@@ -29,6 +29,7 @@
return sha.new("%s:%s:%s" % (username, realm, password)).hexdigest()
class StorageClass(ZEOStorage):
+
def auth(self, username, password):
try:
dbpw = self.database.get_password(username)
@@ -41,7 +42,6 @@
self.database.realm,
password))
return self.finish_auth(dbpw == password_dig)
-
class PlaintextClient(Client):
extensions = ["auth"]
=== ZODB3/ZEO/tests/CommitLockTests.py 1.15 => 1.15.10.1 ===
--- ZODB3/ZEO/tests/CommitLockTests.py:1.15 Thu Oct 2 14:17:21 2003
+++ ZODB3/ZEO/tests/CommitLockTests.py Tue Nov 25 16:09:37 2003
@@ -17,7 +17,7 @@
import time
from ZODB.Transaction import Transaction
-from ZODB.TimeStamp import TimeStamp
+from persistent.TimeStamp import TimeStamp
from ZODB.tests.StorageTestBase import zodb_pickle, MinPO
import ZEO.ClientStorage
More information about the Zodb-checkins
mailing list