diff options
author | Tres Seaver <tseaver@palladion.com> | 2015-06-01 14:24:12 -0400 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2015-06-01 14:24:12 -0400 |
commit | c3e15d801b0ea46ead0931246b02b8f8d086b9cb (patch) | |
tree | 84dec0cd4a5ddc26a2ee86f6cf568c69bfa09809 | |
parent | 2b0195ccd8586f0daa0db342866e15cdfac123bb (diff) | |
download | zope-security-c3e15d801b0ea46ead0931246b02b8f8d086b9cb.tar.gz |
Fix 'py27-pure'/'py33-pure' tox environments.
-rw-r--r-- | src/zope/security/checker.py | 2 | ||||
-rw-r--r-- | src/zope/security/proxy.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/zope/security/checker.py b/src/zope/security/checker.py index 9687f19..8fc4890 100644 --- a/src/zope/security/checker.py +++ b/src/zope/security/checker.py @@ -441,7 +441,7 @@ _available_by_default = [] # Get optimized versions try: import zope.security._zope_security_checker -except ImportError: #pragma NO COVER +except (ImportError, AttributeError): #pragma NO COVER PyPy / PURE_PYTHON pass else: from zope.security._zope_security_checker import _checkers, selectChecker diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py index f023ca3..ccfd111 100644 --- a/src/zope/security/proxy.py +++ b/src/zope/security/proxy.py @@ -327,7 +327,7 @@ def getObjectPy(proxy): try: from zope.security._proxy import _Proxy -except ImportError: #pragma NO COVER PyPy +except (ImportError, AttributeError): #pragma NO COVER PyPy / PURE_PYTHON getChecker = getCheckerPy getObject = getObjectPy Proxy = ProxyPy |