We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a65705 commit 15d6960Copy full SHA for 15d6960
tests/test_main.py
@@ -155,6 +155,14 @@ def test_valid_dists_preferred(self):
155
dist = Distribution.from_name('foo')
156
assert dist.version == "1.0"
157
158
+ def test_missing_metadata(self):
159
+ """
160
+ Dists with a missing metadata file should return None.
161
162
+ fixtures.build_files(self.make_pkg('foo-4.3', files={}), self.site_dir)
163
+ assert Distribution.from_name('foo').metadata is None
164
+ assert metadata('foo') is None
165
+
166
167
class NonASCIITests(fixtures.OnSysPath, fixtures.SiteDir, unittest.TestCase):
168
@staticmethod
0 commit comments