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

Jason Madden noreply at github.com
Thu Apr 23 13:14:50 CEST 2020


  Branch: refs/heads/issue208
  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.




More information about the checkins mailing list