Skip to content

Commit 08d7def

Browse files
committed
Fix test that assumed entries was a dict. Now expect entries is EntryPoints. Tests didn't fail because it was a negative test and a namedtuple always compares unequal to a string.
1 parent 930841a commit 08d7def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def test_entry_points_unique_packages(self):
115115
for ep in entries
116116
)
117117
# ns:sub doesn't exist in alt_pkg
118-
assert 'ns:sub' not in entries
118+
assert 'ns:sub' not in entries.names
119119

120120
def test_entry_points_missing_name(self):
121121
with self.assertRaises(KeyError):

0 commit comments

Comments
 (0)