@@ -28,7 +28,7 @@ def test_glob_relative(tmp_path, monkeypatch):
28
28
"dir1/dir2/a.ini" ,
29
29
}
30
30
31
- write_files ({ k : "" for k in files } , tmp_path )
31
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
32
32
patterns = ["**/*.txt" , "[ab].*" , "**/[ac].ini" ]
33
33
monkeypatch .chdir (tmp_path )
34
34
assert set (expand .glob_relative (patterns )) == files
@@ -172,7 +172,7 @@ def test_find_packages(tmp_path, args, pkgs):
172
172
"other/__init__.py" ,
173
173
"dir1/dir2/__init__.py" ,
174
174
}
175
- write_files ({ k : "" for k in files } , tmp_path )
175
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
176
176
177
177
package_dir = {}
178
178
kwargs = {"root_dir" : tmp_path , "fill_package_dir" : package_dir , ** args }
@@ -211,7 +211,7 @@ def test_find_packages(tmp_path, args, pkgs):
211
211
],
212
212
)
213
213
def test_fill_package_dir (tmp_path , files , where , expected_package_dir ):
214
- write_files ({ k : "" for k in files } , tmp_path )
214
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
215
215
pkg_dir = {}
216
216
kwargs = {"root_dir" : tmp_path , "fill_package_dir" : pkg_dir , "namespaces" : False }
217
217
pkgs = expand .find_packages (where = where , ** kwargs )
0 commit comments