summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGediminas Paulauskas <menesis@pov.lt>2011-05-18 14:18:07 +0000
committerGediminas Paulauskas <menesis@pov.lt>2011-05-18 14:18:07 +0000
commit2d081122a688b214249cef7777fb987442123751 (patch)
treeefa9f85b6e05c4cf152da7c1fec3656f82554ef6
parent39bd8b980b4d2fd1d8f1a3ba58855907c39d13c8 (diff)
downloadzope-security-2d081122a688b214249cef7777fb987442123751.tar.gz
Remove a useless check from test_ABCMeta that caused test failures on Python
2.7. issubclass can only be used on types, but proxy is an object. See http://bugs.python.org/issue10569
-rw-r--r--CHANGES.txt3
-rw-r--r--src/zope/security/tests/test_standard_checkers.py7
2 files changed, 2 insertions, 8 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index cd3c33f..9259c25 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -5,7 +5,7 @@ CHANGES
3.8.2 (unreleased)
------------------
-- Nothing changed yet.
+- Fix a test that failed on Python 2.7.
3.8.1 (2011-05-03)
@@ -27,6 +27,7 @@ CHANGES
- Run tests related to the ``untrustedpython`` functionality only if
``RestrictedPython`` is available.
+
3.7.3 (2010-04-30)
------------------
diff --git a/src/zope/security/tests/test_standard_checkers.py b/src/zope/security/tests/test_standard_checkers.py
index 77c6e36..3df2c7d 100644
--- a/src/zope/security/tests/test_standard_checkers.py
+++ b/src/zope/security/tests/test_standard_checkers.py
@@ -506,13 +506,6 @@ if sys.version_info >= (2, 6):
>>> [c.__name__ for c in PBar.__mro__]
['Bar', 'Foo', 'MyABC', 'object']
- >>> issubclass(PBar, Foo)
- True
-
- >>> issubclass(Bar, Foo)
- True
-
- >>> PBar = ProxyFactory(PBar)
>>> check_forbidden_call(PBar)
'ForbiddenAttribute: __call__'
>>> check_forbidden_get(PBar, '__dict__')