[Checkins] [zopefoundation/zope.interface] 5da431: Fix interface definitions of IAdapterRegistry.subs...
Jason Madden
noreply at github.com
Thu Apr 23 13:12:15 CEST 2020
Branch: refs/heads/issue208
Home: https://github.com/zopefoundation/zope.interface
Commit: 5da431f3d2e5c6bda451bfcce6719e7a936a11fb
https://github.com/zopefoundation/zope.interface/commit/5da431f3d2e5c6bda451bfcce6719e7a936a11fb
Author: Jason Madden <jamadden at gmail.com>
Date: 2020-04-23 (Thu, 23 Apr 2020)
Changed paths:
M CHANGES.rst
M src/zope/interface/adapter.py
M src/zope/interface/interfaces.py
M src/zope/interface/tests/test_adapter.py
Log Message:
-----------
Fix interface definitions of IAdapterRegistry.subscribe, subscribers and subscriptions.
They were defined to accept a name argument, but the actual implementation doesn't. Add tests for this. Fixes #208.
Also in test_adapter.py modernize idioms from assertTrue(x in y) and assertTrue(x is y) to assertIn and assertIs.
More information about the checkins
mailing list