diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-03-13 15:53:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-13 15:53:29 -0400 |
commit | b1e286860742e7ba6fadc75e3ddb6c2899a56919 (patch) | |
tree | 9341f9fe28b546763a4ee8229d54c0fec007e4d1 /Lib/test/test_importlib/test_metadata_api.py | |
parent | c99ac3c364ee21be72263791b71ee8b55f64de08 (diff) | |
download | cpython-b1e286860742e7ba6fadc75e3ddb6c2899a56919.tar.gz cpython-b1e286860742e7ba6fadc75e3ddb6c2899a56919.zip |
bpo-47004: Sync with importlib_metadata 4.11.3. (#31854)
Diffstat (limited to 'Lib/test/test_importlib/test_metadata_api.py')
-rw-r--r-- | Lib/test/test_importlib/test_metadata_api.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_importlib/test_metadata_api.py b/Lib/test/test_importlib/test_metadata_api.py index 78287c314ce..b3627cbb75b 100644 --- a/Lib/test/test_importlib/test_metadata_api.py +++ b/Lib/test/test_importlib/test_metadata_api.py @@ -220,6 +220,16 @@ class APITests( assert len(deps) == 2 assert any(dep == 'wheel >= 1.0; python_version >= "2.7"' for dep in deps) + def test_requires_egg_info_empty(self): + fixtures.build_files( + { + 'requires.txt': '', + }, + self.site_dir.joinpath('egginfo_pkg.egg-info'), + ) + deps = requires('egginfo-pkg') + assert deps == [] + def test_requires_dist_info(self): deps = requires('distinfo-pkg') assert len(deps) == 2 |