[Zodb-checkins] CVS: ZODB3/ZODB/tests - testFileStorage.py:1.21
Guido van Rossum
guido@python.org
Wed, 30 Oct 2002 17:15:33 -0500
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv5037
Modified Files:
testFileStorage.py
Log Message:
Don't use apply(), use f(foo, *args, *kwargs).
=== ZODB3/ZODB/tests/testFileStorage.py 1.20 => 1.21 ===
--- ZODB3/ZODB/tests/testFileStorage.py:1.20 Thu Oct 24 09:51:56 2002
+++ ZODB3/ZODB/tests/testFileStorage.py Wed Oct 30 17:15:32 2002
@@ -32,12 +32,8 @@
):
def open(self, **kwargs):
- if kwargs:
- self._storage = apply(ZODB.FileStorage.FileStorage,
- ('FileStorageTests.fs',), kwargs)
- else:
- self._storage = ZODB.FileStorage.FileStorage(
- 'FileStorageTests.fs', **kwargs)
+ self._storage = ZODB.FileStorage.FileStorage('FileStorageTests.fs',
+ **kwargs)
def setUp(self):
self.open(create=1)