projects
/
htsworkflow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Initial port to python3
[htsworkflow.git]
/
test
/
tree.py
diff --git
a/test/tree.py
b/test/tree.py
index 4f666cc14a3b4f3326a66ecec138572a5a8bd05a..2d7653ec0307f82a4217672232b589ec9d51a3de 100644
(file)
--- a/
test/tree.py
+++ b/
test/tree.py
@@
-12,7
+12,7
@@
def make_random_string(length=8):
"""
symbols = "abcdefhijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
name = []
"""
symbols = "abcdefhijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
name = []
- for i in
x
range(length):
+ for i in range(length):
name.append(random.choice(symbols))
return "".join(name)
name.append(random.choice(symbols))
return "".join(name)
@@
-77,5
+77,5
@@
def compare_tree(root, paths, verbose=False):
difference = experimental_set - theoretical_set
issame = (len(difference) == 0)
if verbose and not issame:
difference = experimental_set - theoretical_set
issame = (len(difference) == 0)
if verbose and not issame:
- print
difference
+ print
(difference)
return issame
return issame