[Zope-Checkins] CVS: Zope/lib/python/ZEO/tests - CommitLockTests.py:1.13
Fred L. Drake, Jr.
fred@zope.com
Wed, 9 Jul 2003 12:25:52 -0400
Update of /cvs-repository/Zope/lib/python/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv12488/ZEO/tests
Modified Files:
CommitLockTests.py
Log Message:
Replace apply(f,args,kw) with f(*args,**kw) to avoid deprecation warnings
from Python 2.3.
These warnings are displayed when running the unit tests.
This patch fixes the occurrances that are triggered by the unit tests;
there are probably others.
=== Zope/lib/python/ZEO/tests/CommitLockTests.py 1.12 => 1.13 ===
--- Zope/lib/python/ZEO/tests/CommitLockTests.py:1.12 Wed Jan 15 13:19:16 2003
+++ Zope/lib/python/ZEO/tests/CommitLockTests.py Wed Jul 9 12:25:16 2003
@@ -242,5 +242,5 @@
def _get_timestamp(self):
t = time.time()
- t = apply(TimeStamp,(time.gmtime(t)[:5]+(t%60,)))
+ t = TimeStamp(*time.gmtime(t)[:5]+(t%60,))
return `t`