@@ -50,21 +50,21 @@ def _sep(paths: Iterable[str]) -> set[str]:
5050 return {path .replace ("/" , os .path .sep ) for path in paths }
5151
5252
53- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
53+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
5454def test_basic (inwd : WorkDir ) -> None :
5555 assert set (find_files ()) == _sep ({"file1" , "adir/filea" , "bdir/fileb" })
5656 assert set (find_files ("." )) == _sep ({"./file1" , "./adir/filea" , "./bdir/fileb" })
5757 assert set (find_files ("adir" )) == _sep ({"adir/filea" })
5858
5959
60- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
60+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
6161def test_whitespace (inwd : WorkDir ) -> None :
6262 (inwd .cwd / "adir" / "space file" ).touch ()
6363 inwd .add_and_commit ()
6464 assert set (find_files ("adir" )) == _sep ({"adir/space file" , "adir/filea" })
6565
6666
67- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
67+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
6868def test_case (inwd : WorkDir ) -> None :
6969 (inwd .cwd / "CamelFile" ).touch ()
7070 (inwd .cwd / "file2" ).touch ()
@@ -74,7 +74,7 @@ def test_case(inwd: WorkDir) -> None:
7474 )
7575
7676
77- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
77+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
7878@pytest .mark .skipif (
7979 os .path .normcase ("B" ) != os .path .normcase ("b" ), reason = "case sensitive filesystem"
8080)
@@ -88,22 +88,22 @@ def test_case_cwd_evil(inwd: WorkDir, monkeypatch: pytest.MonkeyPatch) -> None:
8888 )
8989
9090
91- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
91+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
9292@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks to dir not supported" )
9393def test_symlink_dir (inwd : WorkDir ) -> None :
9494 (inwd .cwd / "adir" / "bdirlink" ).symlink_to ("../bdir" )
9595 inwd .add_and_commit ()
9696 assert set (find_files ("adir" )) == _sep ({"adir/filea" , "adir/bdirlink/fileb" })
9797
9898
99- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
99+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
100100@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks to dir not supported" )
101101def test_symlink_dir_source_not_in_scm (inwd : WorkDir ) -> None :
102102 (inwd .cwd / "adir" / "bdirlink" ).symlink_to ("../bdir" )
103103 assert set (find_files ("adir" )) == _sep ({"adir/filea" })
104104
105105
106- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
106+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
107107@pytest .mark .skipif (
108108 sys .platform == "win32" , reason = "symlinks to files not supported on windows"
109109)
@@ -115,7 +115,7 @@ def test_symlink_file(inwd: WorkDir) -> None:
115115 ) # -> ../file1
116116
117117
118- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
118+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
119119@pytest .mark .skipif (
120120 sys .platform == "win32" , reason = "symlinks to files not supported on windows"
121121)
@@ -124,15 +124,15 @@ def test_symlink_file_source_not_in_scm(inwd: WorkDir) -> None:
124124 assert set (find_files ("adir" )) == _sep ({"adir/filea" })
125125
126126
127- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
127+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
128128@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks to dir not supported" )
129129def test_symlink_loop (inwd : WorkDir ) -> None :
130130 (inwd .cwd / "adir" / "loop" ).symlink_to ("../adir" )
131131 inwd .add_and_commit ()
132132 assert set (find_files ("adir" )) == _sep ({"adir/filea" , "adir/loop" }) # -> ../adir
133133
134134
135- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
135+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
136136@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks to dir not supported" )
137137def test_symlink_loop_outside_path (inwd : WorkDir ) -> None :
138138 (inwd .cwd / "bdir" / "loop" ).symlink_to ("../bdir" )
@@ -141,15 +141,15 @@ def test_symlink_loop_outside_path(inwd: WorkDir) -> None:
141141 assert set (find_files ("adir" )) == _sep ({"adir/filea" , "adir/bdirlink/fileb" })
142142
143143
144- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
144+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
145145@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks to dir not supported" )
146146def test_symlink_dir_out_of_git (inwd : WorkDir ) -> None :
147147 (inwd .cwd / "adir" / "outsidedirlink" ).symlink_to (os .path .join (__file__ , ".." ))
148148 inwd .add_and_commit ()
149149 assert set (find_files ("adir" )) == _sep ({"adir/filea" })
150150
151151
152- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
152+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
153153@pytest .mark .skipif (
154154 sys .platform == "win32" , reason = "symlinks to files not supported on windows"
155155)
@@ -159,7 +159,7 @@ def test_symlink_file_out_of_git(inwd: WorkDir) -> None:
159159 assert set (find_files ("adir" )) == _sep ({"adir/filea" })
160160
161161
162- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
162+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
163163@pytest .mark .parametrize ("path_add" , ["{cwd}" , "{cwd}" + os .pathsep + "broken" ])
164164def test_ignore_root (
165165 inwd : WorkDir , monkeypatch : pytest .MonkeyPatch , path_add : str
@@ -168,7 +168,7 @@ def test_ignore_root(
168168 assert find_files () == []
169169
170170
171- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
171+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
172172def test_empty_root (inwd : WorkDir ) -> None :
173173 subdir = inwd .cwd / "cdir" / "subdir"
174174 subdir .mkdir (parents = True )
@@ -177,7 +177,7 @@ def test_empty_root(inwd: WorkDir) -> None:
177177 assert set (find_files ("cdir" )) == _sep ({"cdir/subdir/filec" })
178178
179179
180- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
180+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
181181def test_empty_subdir (inwd : WorkDir ) -> None :
182182 subdir = inwd .cwd / "adir" / "emptysubdir" / "subdir"
183183 subdir .mkdir (parents = True )
@@ -188,7 +188,7 @@ def test_empty_subdir(inwd: WorkDir) -> None:
188188 )
189189
190190
191- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
191+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
192192@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks not supported on windows" )
193193def test_double_include_through_symlink (inwd : WorkDir ) -> None :
194194 (inwd .cwd / "data" ).mkdir ()
@@ -208,7 +208,7 @@ def test_double_include_through_symlink(inwd: WorkDir) -> None:
208208 )
209209
210210
211- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
211+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
212212@pytest .mark .skipif (sys .platform == "win32" , reason = "symlinks not supported on windows" )
213213def test_symlink_not_in_scm_while_target_is (inwd : WorkDir ) -> None :
214214 (inwd .cwd / "data" ).mkdir ()
@@ -228,14 +228,14 @@ def test_symlink_not_in_scm_while_target_is(inwd: WorkDir) -> None:
228228 )
229229
230230
231- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
231+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
232232@pytest .mark .issue (587 )
233233@pytest .mark .skip_commit
234234def test_not_commited (inwd : WorkDir ) -> None :
235235 assert find_files () == []
236236
237237
238- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
238+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
239239def test_unexpanded_git_archival (wd : WorkDir , monkeypatch : pytest .MonkeyPatch ) -> None :
240240 # When substitutions in `.git_archival.txt` are not expanded, files should
241241 # not be automatically listed.
@@ -245,7 +245,7 @@ def test_unexpanded_git_archival(wd: WorkDir, monkeypatch: pytest.MonkeyPatch) -
245245 assert find_files () == []
246246
247247
248- @pytest .mark .filterwarnings (' ignore:listing git files failed' )
248+ @pytest .mark .filterwarnings (" ignore:listing git files failed" )
249249@pytest .mark .parametrize ("archive_file" , [".git_archival.txt" , ".hg_archival.txt" ])
250250def test_archive (
251251 wd : WorkDir , monkeypatch : pytest .MonkeyPatch , archive_file : str
0 commit comments