diff options
author | Jason Madden <jamadden@gmail.com> | 2017-09-12 07:36:21 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-09-12 07:36:21 -0500 |
commit | 12ce0b541c080b286673f314df517ee0fd135257 (patch) | |
tree | 5fb79d72d798915beb333d141da478f92f583bea /src | |
parent | 7ef0a23aa51a1e8121ee0427b331d7faa2401ed6 (diff) | |
download | zope-security-12ce0b541c080b286673f314df517ee0fd135257.tar.gz |
100% coverage for test_location.py
zope.location is a hard test dependency, no need for conditional logic.
Diffstat (limited to 'src')
-rw-r--r-- | src/zope/security/tests/test_location.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/zope/security/tests/test_location.py b/src/zope/security/tests/test_location.py index 5625f4e..bc5fb03 100644 --- a/src/zope/security/tests/test_location.py +++ b/src/zope/security/tests/test_location.py @@ -15,23 +15,14 @@ """ import unittest +from zope.location.location import LocationProxy from zope.security.tests import QuietWatchingChecker -def _skip_wo_zope_location(testfunc): - try: - import zope.location as zl - except ImportError: - zl = None - - return unittest.skipIf(zl is None, "Need zope.location")(testfunc) - class LocationSecurityProxyTests(QuietWatchingChecker, unittest.TestCase): - @_skip_wo_zope_location def test_locationproxy_security(self): - from zope.location.location import LocationProxy from zope.security.checker import defineChecker from zope.security.checker import NamesChecker from zope.security.proxy import ProxyFactory |