@@ -269,9 +269,11 @@ def _test_optimized_grouping_implicit_namespace_packages(name):
269269 empty_files (
270270 name = name + "_files" ,
271271 paths = [
272- "site-packages/namespace/part1/foo.py" ,
273- "site-packages/namespace/part2/bar.py" ,
274- "site-packages/namespace-1.0.dist-info/METADATA" ,
272+ # NOTE: An alphanumeric name with underscores is used to verify
273+ # name matching is correct.
274+ "site-packages/name_space9/part1/foo.py" ,
275+ "site-packages/name_space9/part2/bar.py" ,
276+ "site-packages/name_space9-1.0.dist-info/METADATA" ,
275277 ],
276278 )
277279 analysis_test (
@@ -296,24 +298,24 @@ def _test_optimized_grouping_implicit_namespace_packages_impl(env, target):
296298 rr = "{}/{}/site-packages/" .format (test_ctx .workspace_name , env .ctx .label .package )
297299 expected = [
298300 _venv_symlink (
299- "namespace /part1" ,
300- link_to_path = rr + "namespace /part1" ,
301+ "name_space9 /part1" ,
302+ link_to_path = rr + "name_space9 /part1" ,
301303 files = [
302- "tests/venv_site_packages_libs/app_files_building/site-packages/namespace /part1/foo.py" ,
304+ "tests/venv_site_packages_libs/app_files_building/site-packages/name_space9 /part1/foo.py" ,
303305 ],
304306 ),
305307 _venv_symlink (
306- "namespace /part2" ,
307- link_to_path = rr + "namespace /part2" ,
308+ "name_space9 /part2" ,
309+ link_to_path = rr + "name_space9 /part2" ,
308310 files = [
309- "tests/venv_site_packages_libs/app_files_building/site-packages/namespace /part2/bar.py" ,
311+ "tests/venv_site_packages_libs/app_files_building/site-packages/name_space9 /part2/bar.py" ,
310312 ],
311313 ),
312314 _venv_symlink (
313- "namespace -1.0.dist-info" ,
314- link_to_path = rr + "namespace -1.0.dist-info" ,
315+ "name_space9 -1.0.dist-info" ,
316+ link_to_path = rr + "name_space9 -1.0.dist-info" ,
315317 files = [
316- "tests/venv_site_packages_libs/app_files_building/site-packages/namespace -1.0.dist-info/METADATA" ,
318+ "tests/venv_site_packages_libs/app_files_building/site-packages/name_space9 -1.0.dist-info/METADATA" ,
317319 ],
318320 ),
319321 ]
0 commit comments