tests: fix get_gitignore_content

readlines() returns entries with \n on the end
This commit is contained in:
Andrew Grigorev
2019-03-21 19:47:42 +03:00
parent 2ef3a7c7c0
commit 63dd3f2c25
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ def spy(method_to_decorate):
def get_gitignore_content():
with open(Git.GITIGNORE, "r") as gitignore:
return gitignore.readlines()
return gitignore.read().splitlines()
def load_stage_file(path):