[Checkins] SVN: zope.interface/trunk/ Fix test failure under 'python setup.py test' in new test for '__hash__'.
Tres Seaver
tseaver at palladion.com
Fri Aug 12 11:55:09 EDT 2011
Log message for revision 122565:
Fix test failure under 'python setup.py test' in new test for '__hash__'.
Fixes LP #825249.
Changed:
U zope.interface/trunk/CHANGES.txt
U zope.interface/trunk/src/zope/interface/tests/test_interface.py
-=-
Modified: zope.interface/trunk/CHANGES.txt
===================================================================
--- zope.interface/trunk/CHANGES.txt 2011-08-12 12:22:55 UTC (rev 122564)
+++ zope.interface/trunk/CHANGES.txt 2011-08-12 15:55:08 UTC (rev 122565)
@@ -4,6 +4,9 @@
3.6.6 (unreleased)
------------------
+- LP #825249: Fix test failure (only under 'python setup.py test') in those
+ same new tests.
+
- Fix Python 2.5 incompatibility introduced in new tests of ``__hash__``.
3.6.5 (2011-08-11)
Modified: zope.interface/trunk/src/zope/interface/tests/test_interface.py
===================================================================
--- zope.interface/trunk/src/zope/interface/tests/test_interface.py 2011-08-12 12:22:55 UTC (rev 122564)
+++ zope.interface/trunk/src/zope/interface/tests/test_interface.py 2011-08-12 15:55:08 UTC (rev 122565)
@@ -406,6 +406,7 @@
hash((('IFoo', 'zope.interface.tests.ifoo'))))
def test_hash_missing_required_attrs(self):
+ import warnings
try:
from warnings import catch_warnings
except ImportError: # Python 2.5
@@ -416,6 +417,7 @@
pass # Don't call base class.
derived = Derived()
with catch_warnings(record=True) as warned:
+ warnings.simplefilter('always') # see LP #825249
self.assertEqual(hash(derived), 1)
self.assertEqual(len(warned), 1)
self.failUnless(warned[0].category is UserWarning)
More information about the checkins
mailing list