File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ v4.11.0
2+ =======
3+
4+ * bpo-46246: Added ``__slots__ `` to ``EntryPoints ``.
5+
16v4.10.2
27=======
38
Original file line number Diff line number Diff line change @@ -283,6 +283,8 @@ class DeprecatedList(list):
283283 1
284284 """
285285
286+ __slots__ = ()
287+
286288 _warn = functools .partial (
287289 warnings .warn ,
288290 "EntryPoints list interface is deprecated. Cast to list if needed." ,
Original file line number Diff line number Diff line change @@ -180,6 +180,11 @@ def test_entry_points_groups_get(self):
180180 entry_points ().get ('entries' , 'default' ) == entry_points ()['entries' ]
181181 entry_points ().get ('missing' , ()) == ()
182182
183+ def test_entry_points_allows_no_attributes (self ):
184+ ep = entry_points ().select (group = 'entries' , name = 'main' )
185+ with self .assertRaises (AttributeError ):
186+ ep .foo = 4
187+
183188 def test_metadata_for_this_package (self ):
184189 md = metadata ('egginfo-pkg' )
185190 assert md ['author' ] == 'Steven Ma'
You can’t perform that action at this time.
0 commit comments