[Python-3000-checkins] r63455 - python/branches/py3k/Lib/test/test_weakset.py

Georg Brandl g.brandl at gmx.net
Sun May 18 23:06:38 CEST 2008


Thanks! Now that's what I get from not building with pydebug locally.

Georg

Brett Cannon schrieb:
> I am getting a failure on OS X because test_c_api does not exist for weaksets.
> 
> On Sun, May 18, 2008 at 10:10 AM, georg.brandl
> <python-3000-checkins at python.org> wrote:
>> Author: georg.brandl
>> Date: Sun May 18 19:10:40 2008
>> New Revision: 63455
>>
>> Log:
>> Better diagnostic.
>>
>>
>> Modified:
>>   python/branches/py3k/Lib/test/test_weakset.py
>>
>> Modified: python/branches/py3k/Lib/test/test_weakset.py
>> ==============================================================================
>> --- python/branches/py3k/Lib/test/test_weakset.py       (original)
>> +++ python/branches/py3k/Lib/test/test_weakset.py       Sun May 18 19:10:40 2008
>> @@ -33,7 +33,8 @@
>>         for method in dir(set):
>>             if method.startswith('_'):
>>                 continue
>> -            self.assert_(method in weaksetmethods)
>> +            self.assert_(method in weaksetmethods,
>> +                         "WeakSet missing method " + method)
>>
>>     def test_new_or_init(self):
>>         self.assertRaises(TypeError, WeakSet, [], 2)
>> _______________________________________________
>> Python-3000-checkins mailing list
>> Python-3000-checkins at python.org
>> http://mail.python.org/mailman/listinfo/python-3000-checkins
>>


-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.



More information about the Python-3000-checkins mailing list