summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 18:07:46 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-16 18:07:46 +0200
commit3eec058b29cc37af8ff116926d4273b377c7471b (patch)
tree012864e3d7fce39e419dd70aa1cbabb347231b82 /tests
parent[config] Use get method instead dict access (diff)
downloadpyload-3eec058b29cc37af8ff116926d4273b377c7471b.tar.xz
Fix comments
Diffstat (limited to 'tests')
-rw-r--r--tests/APIExerciser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/APIExerciser.py b/tests/APIExerciser.py
index 5e84bfefe..38dd9fceb 100644
--- a/tests/APIExerciser.py
+++ b/tests/APIExerciser.py
@@ -18,7 +18,7 @@ def createURLs():
for x in range(0, randint(20, 100)):
name = "DEBUG_API"
if randint(0, 5) == 5:
- name = "" #this link will fail
+ name = "" #: this link will fail
urls.append(name + "".join(sample(string.ascii_letters, randint(10, 20))))
@@ -42,7 +42,7 @@ class APIExerciser(Thread):
Thread.__init__(self)
self.setDaemon(True)
self.core = core
- self.count = 0 #number of methods
+ self.count = 0 #: number of methods
self.time = time()
if thrift:
@@ -81,7 +81,7 @@ class APIExerciser(Thread):
if not self.count % 1000:
out.flush()
- if not sumCalled % 1000: #not thread safe
+ if not sumCalled % 1000: #: not thread safe
self.core.log.info("Exercisers tested %d api calls" % sumCalled)
persec = sumCalled / (time() - self.time)
self.core.log.info("Approx. %.2f calls per second." % persec)