From c8d8cfed1126e45c9c9717fca64648124cdc57c4 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 5 Jul 2012 08:51:09 -0400 Subject: Coverage. Don't bother trying to simulate a uuid4() collision. --- repoze/lru/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repoze/lru/__init__.py b/repoze/lru/__init__.py index 7d9e50a..39a8018 100644 --- a/repoze/lru/__init__.py +++ b/repoze/lru/__init__.py @@ -321,7 +321,7 @@ class CacheMaker(object): _name= str(uuid.uuid4()) ## the probability of collision is so low .... while _name in self._cache.keys(): - _name=str(uuid.uuid4()) + _name=str(uuid.uuid4()) #pragma NO COVER else: if name in self._cache: raise KeyError("cache %s already in use" % name) -- cgit v1.2.1