diff options
author | Stephan Richter <stephan.richter@gmail.com> | 2013-03-11 11:33:16 -0400 |
---|---|---|
committer | Stephan Richter <stephan.richter@gmail.com> | 2013-03-11 11:33:16 -0400 |
commit | 928658355be5bec8fa7a722b132a672e9ac6afaa (patch) | |
tree | 51ee357dbe37f36cf814bd90de553c1a18ffef28 /src/zope/security/tests/test_proxy.py | |
parent | 82fd54dca53bbd7b8700f5a240bde13bf3c41984 (diff) | |
download | zope-security-928658355be5bec8fa7a722b132a672e9ac6afaa.tar.gz |
- Make sure that __str__ and __repr__ never fail by catching all exceptions
and using the custom fallback. (This is equivalent to the C Proxy behavior.)
- Allow __getslice__ and __setslice__ to access the original object's
implementation instead of always falling back to __getitem__ and
__setitem__. Do we really want to support this or just remove the test?
(It is deprecated this Python 2.0!)
- Make sure that Checker.set_permissions is set initiated as an empty dict, if
not provided. While not immediately obvious, this is the C-based checker
behavior as well.
Oh yeah, all tests pass now on py26, py27, py32, py33, and pypy!
Diffstat (limited to 'src/zope/security/tests/test_proxy.py')
-rw-r--r-- | src/zope/security/tests/test_proxy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/security/tests/test_proxy.py b/src/zope/security/tests/test_proxy.py index 974c26f..f73990d 100644 --- a/src/zope/security/tests/test_proxy.py +++ b/src/zope/security/tests/test_proxy.py @@ -16,7 +16,7 @@ import unittest import sys -from zope.security._compat import PYTHON2, PYPY +from zope.security._compat import PYTHON2, PYPY, PURE_PYTHON def _skip_if_not_Py2(testfunc): from functools import update_wrapper @@ -1946,6 +1946,6 @@ def test_suite(): unittest.makeSuite(ProxyTests), unittest.makeSuite(LocationProxySecurityCheckerTests), )) - if not PYPY: + if not (PYPY or PURE_PYTHON): suite.addTest(unittest.makeSuite(ProxyCTests)) return suite |