[Checkins] SVN: zope.security/trunk/ Remove a useless check from test_ABCMeta that caused test failures on Python
Gediminas Paulauskas
menesis at pov.lt
Wed May 18 10:18:07 EDT 2011
Log message for revision 121714:
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
Changed:
U zope.security/trunk/CHANGES.txt
U zope.security/trunk/src/zope/security/tests/test_standard_checkers.py
-=-
Modified: zope.security/trunk/CHANGES.txt
===================================================================
--- zope.security/trunk/CHANGES.txt 2011-05-18 13:41:32 UTC (rev 121713)
+++ zope.security/trunk/CHANGES.txt 2011-05-18 14:18:07 UTC (rev 121714)
@@ -5,7 +5,7 @@
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 @@
- Run tests related to the ``untrustedpython`` functionality only if
``RestrictedPython`` is available.
+
3.7.3 (2010-04-30)
------------------
Modified: zope.security/trunk/src/zope/security/tests/test_standard_checkers.py
===================================================================
--- zope.security/trunk/src/zope/security/tests/test_standard_checkers.py 2011-05-18 13:41:32 UTC (rev 121713)
+++ zope.security/trunk/src/zope/security/tests/test_standard_checkers.py 2011-05-18 14:18:07 UTC (rev 121714)
@@ -506,13 +506,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__')
More information about the checkins
mailing list