diff options
author | Jay Hutchinson <jlhutch@gmail.com> | 2010-10-10 13:19:19 -0500 |
---|---|---|
committer | Jay Hutchinson <jlhutch@gmail.com> | 2010-10-10 13:19:19 -0500 |
commit | 501a1a37c0db7a48e82e6e18c319ab2dd2e779e8 (patch) | |
tree | c80ff3805f1c0f50f835f9028b1bce3b160ae449 /test.py | |
parent | 8d09ccde0b2743c666d8b4eafa6ae306a785baea (diff) | |
download | pylru-501a1a37c0db7a48e82e6e18c319ab2dd2e779e8.tar.gz |
Removed unnecessary __del__ from lrucache. Added a few comments.
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() |