summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTres Seaver <tseaver@palladion.com>2012-07-05 08:51:09 -0400
committerTres Seaver <tseaver@palladion.com>2012-07-05 08:51:09 -0400
commitc8d8cfed1126e45c9c9717fca64648124cdc57c4 (patch)
tree2ee1f89a3fd31d85819b6244abad723b328ef000
parent0a3c029d2e6944fd674e299aab068f1de46096d1 (diff)
downloadrepoze-lru-c8d8cfed1126e45c9c9717fca64648124cdc57c4.tar.gz
Coverage.
Don't bother trying to simulate a uuid4() collision.
-rw-r--r--repoze/lru/__init__.py2
1 files changed, 1 insertions, 1 deletions
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)