diff --git a/tests/test_api.py b/tests/test_api.py index c9c32c43..26731884 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -232,6 +232,16 @@ def test_requires_egg_info(self): 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