summaryrefslogtreecommitdiff
path: root/src/zope/security/tests
diff options
context:
space:
mode:
authorStephan Richter <stephan.richter@gmail.com>2013-03-10 21:19:38 -0400
committerStephan Richter <stephan.richter@gmail.com>2013-03-10 21:19:38 -0400
commit19f01d59f4b4e7dac9a714d202c5f44e7a850701 (patch)
treedcafa1ee03ee5f5572ac3c94ea3214c64f6920a8 /src/zope/security/tests
parentded617955b2dba40a1739cf27d155e7da3608644 (diff)
downloadzope-security-19f01d59f4b4e7dac9a714d202c5f44e7a850701.tar.gz
Implemented proper handling when __str__ and __repr__ are not allowed. In
those cases we do not want to fail with a cryptic error, but provide an informative output.
Diffstat (limited to 'src/zope/security/tests')
-rw-r--r--src/zope/security/tests/test_proxy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zope/security/tests/test_proxy.py b/src/zope/security/tests/test_proxy.py
index 231c3c3..7408419 100644
--- a/src/zope/security/tests/test_proxy.py
+++ b/src/zope/security/tests/test_proxy.py
@@ -1378,7 +1378,7 @@ class DummyChecker(object):
self._checked = name
if name not in self._allowed:
if self._raising is not None:
- raise self._raising()
+ raise self._raising(name)
check_getattr = check_setattr = check
def proxy(self, value):
self._proxied = value