Skip to content

Commit bf8ccba

Browse files
committed
Update test to capture the actual expectation on EntryPoints object and remove deprecated usage.
1 parent a3ea937 commit bf8ccba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ def test_entry_points_groups_get(self):
181181
entry_points().get('missing', ()) == ()
182182

183183
def test_entry_points_allows_no_attributes(self):
184+
ep = entry_points().select(group='entries', name='main')
184185
with self.assertRaises(AttributeError):
185-
entry_points()['entries'][0].foo = 4
186+
ep.foo = 4
186187

187188
def test_metadata_for_this_package(self):
188189
md = metadata('egginfo-pkg')

0 commit comments

Comments
 (0)