move randomtrackingdict.py out side the network dircetory
This commit is contained in:
parent
a2ab0a02dc
commit
46e2f04488
|
@ -4,7 +4,7 @@ Track randomize ordered dict
|
||||||
from threading import RLock
|
from threading import RLock
|
||||||
from time import time
|
from time import time
|
||||||
|
|
||||||
import helper_random
|
from pybitmessage import helper_random
|
||||||
|
|
||||||
|
|
||||||
class RandomTrackingDict(object):
|
class RandomTrackingDict(object):
|
|
@ -22,12 +22,9 @@ class TestRandomTrackingDict(unittest.TestCase):
|
||||||
|
|
||||||
def test_check_randomtrackingdict(self):
|
def test_check_randomtrackingdict(self):
|
||||||
"""Check the logic of RandomTrackingDict class"""
|
"""Check the logic of RandomTrackingDict class"""
|
||||||
# from network import RandomTrackingDict
|
from pybitmessage.randomtrackingdict import RandomTrackingDict
|
||||||
# from pybitmessage.network.randomtrackingdict import RandomTrackingDict
|
|
||||||
# from network.randomtrackingdict import RandomTrackingDict
|
|
||||||
from pybitmessage import network
|
|
||||||
a = []
|
a = []
|
||||||
k = network.randomtrackingdict.RandomTrackingDict()
|
k = RandomTrackingDict()
|
||||||
|
|
||||||
a.append(time())
|
a.append(time())
|
||||||
for i in range(50000):
|
for i in range(50000):
|
||||||
|
|
Reference in New Issue
Block a user