@@ -29,7 +29,7 @@ def test_glob_relative(tmp_path, monkeypatch):
29
29
"dir1/dir2/a.ini" ,
30
30
}
31
31
32
- write_files ({ k : "" for k in files } , tmp_path )
32
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
33
33
patterns = ["**/*.txt" , "[ab].*" , "**/[ac].ini" ]
34
34
monkeypatch .chdir (tmp_path )
35
35
assert set (expand .glob_relative (patterns )) == files
@@ -198,7 +198,7 @@ def test_find_packages(tmp_path, args, pkgs):
198
198
"other/__init__.py" ,
199
199
"dir1/dir2/__init__.py" ,
200
200
}
201
- write_files ({ k : "" for k in files } , tmp_path )
201
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
202
202
203
203
package_dir = {}
204
204
kwargs = {"root_dir" : tmp_path , "fill_package_dir" : package_dir , ** args }
@@ -237,7 +237,7 @@ def test_find_packages(tmp_path, args, pkgs):
237
237
],
238
238
)
239
239
def test_fill_package_dir (tmp_path , files , where , expected_package_dir ):
240
- write_files ({ k : "" for k in files } , tmp_path )
240
+ write_files (dict . fromkeys ( files , "" ) , tmp_path )
241
241
pkg_dir = {}
242
242
kwargs = {"root_dir" : tmp_path , "fill_package_dir" : pkg_dir , "namespaces" : False }
243
243
pkgs = expand .find_packages (where = where , ** kwargs )
0 commit comments