File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def _ensure_supporting_files(self):
135135 readme_path .write_text (README_CONTENT )
136136
137137 gitignore_path = self ._cachedir .joinpath (".gitignore" )
138- msg = "# Created by pytest automatically.\n *"
138+ msg = "# Created by pytest automatically.\n *\n "
139139 gitignore_path .write_text (msg , encoding = "UTF-8" )
140140
141141 cachedir_tag_path = self ._cachedir .joinpath ("CACHEDIR.TAG" )
Original file line number Diff line number Diff line change @@ -1029,7 +1029,7 @@ def test_gitignore(testdir):
10291029 config = testdir .parseconfig ()
10301030 cache = Cache .for_config (config )
10311031 cache .set ("foo" , "bar" )
1032- msg = "# Created by pytest automatically.\n *"
1032+ msg = "# Created by pytest automatically.\n *\n "
10331033 gitignore_path = cache ._cachedir .joinpath (".gitignore" )
10341034 assert gitignore_path .read_text (encoding = "UTF-8" ) == msg
10351035
You can’t perform that action at this time.
0 commit comments