[Checkins] [zopefoundation/zope.interface] 44169e: Fix interface definitions of IAdapterRegistry.subs...

Jason Madden noreply at github.com
Thu Apr 23 13:49:26 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 44169e9ed26400c06e4659069e0c3ea869f40c61
      https://github.com/zopefoundation/zope.interface/commit/44169e9ed26400c06e4659069e0c3ea869f40c61
  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.


  Commit: 255db9d3c0ea7a5016e3c87644c23fca6eda9a7d
      https://github.com/zopefoundation/zope.interface/commit/255db9d3c0ea7a5016e3c87644c23fca6eda9a7d
  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:
  -----------
  Merge pull request #209 from zopefoundation/issue208

Fix interface definitions of IAdapterRegistry.subscribe, subscribers, subscriptions


Compare: https://github.com/zopefoundation/zope.interface/compare/10a951f9db32...255db9d3c0ea


More information about the checkins mailing list