mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: fix get_gitignore_content
readlines() returns entries with \n on the end
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user