Skip to content
Snippets Groups Projects
Commit e8382791 authored by Anders H. Rebner's avatar Anders H. Rebner
Browse files

#9 Fikset warning

parent ac0e7044
No related branches found
No related tags found
1 merge request!10Database setup
......@@ -119,7 +119,8 @@ class DatabaseTest(unittest.TestCase):
line = f.readline().split(", ")
categories_file.append(line[0])
# Skip all words:
[f.readline() for _ in range(int(line[1].rstrip()))]
for _ in range(int(line[1].rstrip())):
f.readline()
f.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment