summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2017-07-11 07:17:59 -0500
committerJason Madden <jamadden@gmail.com>2017-07-11 07:17:59 -0500
commit1aadd78d96daab05f617c9a5ab1a4ca1fef69a7b (patch)
treee64ea8dedf4c69d88ea6d2a427862542883503ee
parent6146dbb1a7d8c8e1fc6ba084b77ca51bdea91554 (diff)
downloadzope-proxy-1aadd78d96daab05f617c9a5ab1a4ca1fef69a7b.tar.gz
Use the right security proxy when testing C removeAllProxiesdoctest-all-the-things
This fixes the failure in test_security_proxy.
-rw-r--r--src/zope/proxy/tests/test_proxy.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zope/proxy/tests/test_proxy.py b/src/zope/proxy/tests/test_proxy.py
index 568fc03..85d844c 100644
--- a/src/zope/proxy/tests/test_proxy.py
+++ b/src/zope/proxy/tests/test_proxy.py
@@ -1320,8 +1320,10 @@ class Test_removeAllProxies(Test_py_removeAllProxies):
from zope.proxy import ProxyBase
return ProxyBase(obj)
- def test_security_proxy(self):
- raise unittest.SkipTest("This fails with the C implementation")
+ def _makeSecurityProxy(self, obj):
+ from zope.security.proxy import Proxy
+ checker = object()
+ return Proxy(obj, checker)
class Test_ProxyIterator(unittest.TestCase):