File tree 1 file changed +4
-18
lines changed 1 file changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -401,29 +401,15 @@ def test_packages_distributions_all_module_types(self):
401
401
402
402
403
403
class PackagesDistributionsDistTest (
404
- fixtures .DistInfoPkg ,
405
404
fixtures .DistInfoSymlinkedPkg ,
406
405
unittest .TestCase ,
407
406
):
408
- def test_packages_distributions_on_dist_info (self ):
407
+ def test_packages_distributions_symlinked_top_level (self ):
409
408
"""
410
- Test _top_level_inferred() on various dist-info packages.
409
+ Distribution is resolvable from a simple top-level symlink in RECORD.
410
+ See #452.
411
411
"""
412
- distributions = packages_distributions ()
413
-
414
- def import_names_from_package (package_name ):
415
- return {
416
- import_name
417
- for import_name , package_names in distributions .items ()
418
- if package_name in package_names
419
- }
420
-
421
- # distinfo-pkg has one import ('mod') inferred from RECORD
422
- assert import_names_from_package ('distinfo-pkg' ) == {'mod' }
423
-
424
- # symlinked-pkg has one import ('symlinked') inderred from RECORD which
425
- # references a symlink to the real package dir elsewhere.
426
- assert import_names_from_package ('symlinked-pkg' ) == {'symlinked' }
412
+ assert packages_distributions ()['symlinked' ] == ['symlinked-pkg' ]
427
413
428
414
429
415
class PackagesDistributionsEggTest (
You can’t perform that action at this time.
0 commit comments