[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Caching/RAMCache/tests - test_RAMCache.py:1.6

Albertas Agejevas alga@codeworks.lt
Tue, 3 Dec 2002 03:45:47 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Caching/RAMCache/tests
In directory cvs.zope.org:/tmp/cvs-serv2460/RAMCache/tests

Modified Files:
	test_RAMCache.py 
Log Message:
A fix to the RAMCache tests failing on Windows.
Made cacheIds really unique by appending a lock protected counter.


=== Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py:1.5	Mon Dec  2 15:03:47 2002
+++ Zope3/lib/python/Zope/App/Caching/RAMCache/tests/test_RAMCache.py	Tue Dec  3 03:45:46 2002
@@ -58,9 +58,9 @@
 
     def test_init(self):
         from Zope.App.Caching.RAMCache.RAMCache import RAMCache
-        c1 = RAMCache()
-        c2 = RAMCache()
-        self.assertNotEquals(c1._cacheId, c2._cacheId,
+        c1 = RAMCache()._cacheId
+        c2 = RAMCache()._cacheId
+        self.assertNotEquals(c1, c2,
                              "The cacheId is not unique")