replace print statements with logger #1688
|
@ -1,7 +1,6 @@
|
|||
"""
|
||||
Track randomize ordered dict
|
||||
"""
|
||||
import random
|
||||
from threading import RLock
|
||||
from time import time
|
||||
|
||||
|
@ -128,41 +127,3 @@ class RandomTrackingDict(object):
|
|||
self.pendingLen += 1
|
||||
self.lastPoll = time()
|
||||
return retval
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
# pylint: disable=redefined-outer-name
|
||||
def randString():
|
||||
"""helper function for tests, generates a random string"""
|
||||
retval = b''
|
||||
for _ in range(32):
|
||||
retval += chr(random.randint(0, 255))
|
||||
return retval
|
||||
|
||||
a = []
|
||||
k = RandomTrackingDict()
|
||||
d = {}
|
||||
|
||||
print "populating random tracking dict"
|
||||
a.append(time())
|
||||
for i in range(50000):
|
||||
k[randString()] = True
|
||||
a.append(time())
|
||||
print "done"
|
||||
|
||||
while k:
|
||||
retval = k.randomKeys(1000)
|
||||
if not retval:
|
||||
print "error getting random keys"
|
||||
try:
|
||||
k.randomKeys(100)
|
||||
print "bad"
|
||||
except KeyError:
|
||||
pass
|
||||
for i in retval:
|
||||
del k[i]
|
||||
a.append(time())
|
||||
|
||||
for x in range(len(a) - 1):
|
||||
print "%i: %.3f" % (x, a[x + 1] - a[x])
|
||||
|
|
|
@ -4,6 +4,7 @@ Module for using filesystem (directory with files) for inventory storage
|
|||
import string
|
||||
import time
|
||||
from binascii import hexlify, unhexlify
|
||||
from debug import logger
|
||||
from os import listdir, makedirs, path, remove, rmdir
|
||||
from threading import RLock
|
||||
|
||||
|
@ -162,7 +163,7 @@ class FilesystemInventory(InventoryStorage):
|
|||
newInventory[streamNumber][hashId] = InventoryItem(
|
||||
objectType, streamNumber, None, expiresTime, tag)
|
||||
except KeyError:
|
||||
print "error loading %s" % (hexlify(hashId))
|
||||
logger.warning('error loading %s', hexlify(hashId))
|
||||
self._inventory = newInventory
|
||||
# for i, v in self._inventory.items():
|
||||
# print "loaded stream: %s, %i items" % (i, len(v))
|
||||
|
|
47
src/tests/test_randomtrackingdict.py
Normal file
|
@ -0,0 +1,47 @@
|
|||
|
||||
"""
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
Tests for RandomTrackingDict class
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
"""
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
import random
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
import unittest
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
from network import randomtrackingdict
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
from time import time
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
class TestRandomTrackingDict(unittest.TestCase):
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
"""Main protocol test case"""
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
@staticmethod
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
def randString():
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
"""helper function for tests, generates a random string"""
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
retval = b''
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
for _ in range(32):
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
retval += chr(random.randint(0, 255))
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
return retval
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
def test_check_randomtrackingdict(self):
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
"""Check the logic of RandomTrackingDict class"""
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
a = []
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
k = randomtrackingdict.RandomTrackingDict()
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
a.append(time())
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
for i in range(50000):
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
k[self.randString()] = True
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
a.append(time())
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
while k:
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
retval = k.randomKeys(1000)
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
if not retval:
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
self.fail("error getting random keys")
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
try:
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
k.randomKeys(100)
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
self.fail("bad")
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
except KeyError:
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
pass
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
for i in retval:
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
del k[i]
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
a.append(time())
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
for x in range(len(a) - 1):
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
||||
self.assertLess(a[x + 1] - a[x], 10)
|
||||
If I remember right, this should be replaced with a test failure. If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure. I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of This is debugging information. We should check if this is not too slow. Let's say all values of `a[x + 1] - a[x]` need to be less than `10.0`.
`"""Test performance of RandomTrackingDict"""`
Maybe this needs to be Maybe this needs to be `10.0`, I'm not fully sure, we'll see once the import is fixed.
|
If I remember right, this should be replaced with a test failure.
If I remember right, this should be replaced with a test failure.
I think this should also be replaced with a test failure.
I think this should also be replaced with a test failure.
This is debugging information. We should check if this is not too slow. Let's say all values of
a[x + 1] - a[x]
need to be less than10.0
.This is debugging information. We should check if this is not too slow. Let's say all values of
a[x + 1] - a[x]
need to be less than10.0
."""Test performance of RandomTrackingDict"""
"""Test performance of RandomTrackingDict"""
Maybe this needs to be
10.0
, I'm not fully sure, we'll see once the import is fixed.Maybe this needs to be
10.0
, I'm not fully sure, we'll see once the import is fixed.