summaryrefslogtreecommitdiff
path: root/src/zope/security/tests/test_proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/security/tests/test_proxy.py')
-rw-r--r--src/zope/security/tests/test_proxy.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/zope/security/tests/test_proxy.py b/src/zope/security/tests/test_proxy.py
index ca4a8a3..62d6a83 100644
--- a/src/zope/security/tests/test_proxy.py
+++ b/src/zope/security/tests/test_proxy.py
@@ -1957,7 +1957,11 @@ class LocationProxySecurityCheckerTests(unittest.TestCase):
import sys
from zope.location.location import LocationProxy
import zope.security
- from zope.security._compat import reload
+ try:
+ from imp import reload
+ except ImportError:
+ reload = reload # Python 2
+
# This attribute is set when zope.security.decorator is imported, to
# show that it will be set too, if zope.security.proxy is imported
# we set it to a different value at first: