[Checkins] [zopefoundation/zope.security] 667f22: Fixes #10: Pure-python proxies don't check __unico...

GitHub noreply at github.com
Thu Jan 11 15:00:12 CET 2018


  Branch: refs/heads/issue10
  Home:   https://github.com/zopefoundation/zope.security
  Commit: 667f223759fa9566c1cc0a77c466a8a6e8f63e1c
      https://github.com/zopefoundation/zope.security/commit/667f223759fa9566c1cc0a77c466a8a6e8f63e1c
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2018-01-11 (Thu, 11 Jan 2018)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/proxy.py
    M src/zope/security/tests/test_proxy.py

  Log Message:
  -----------
  Fixes #10: Pure-python proxies don't check __unicode__

Just like the C implementation. Note that ``__str__`` is checked for
both implementations on both Python 2 and 3, but if there is no
``__unicode__`` method defined, Python 2's automatic fallback to
``__str__`` is **not** checked when ``unicode`` is called.

Add tests for these cases.




More information about the checkins mailing list