summaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorJay Hutchinson <jlhutch@gmail.com>2010-10-10 13:19:19 -0500
committerJay Hutchinson <jlhutch@gmail.com>2010-10-10 13:19:19 -0500
commit501a1a37c0db7a48e82e6e18c319ab2dd2e779e8 (patch)
treec80ff3805f1c0f50f835f9028b1bce3b160ae449 /test.py
parent8d09ccde0b2743c666d8b4eafa6ae306a785baea (diff)
downloadpylru-501a1a37c0db7a48e82e6e18c319ab2dd2e779e8.tar.gz
Removed unnecessary __del__ from lrucache. Added a few comments.
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test.py b/test.py
index fd849d0..8ed5fee 100644
--- a/test.py
+++ b/test.py
@@ -2,6 +2,9 @@
from pylru import *
import random
+# This tests PyLRU by fuzzing it with random operations, then checking the
+# results against another, simpler, LRU cache implementation.
+
class simplelrucache:
def __init__(self, size):
@@ -161,6 +164,7 @@ def testDecorator():
if __name__ == '__main__':
random.seed()
+
for i in range(20):
testcache()