[Python-3000] test_profile failing

Barry Warsaw barry at python.org
Sat Mar 1 03:13:35 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 29, 2008, at 9:05 PM, Mark Dickinson wrote:

> On Fri, Feb 29, 2008 at 11:55 AM, Fred Drake <fdrake at acm.org> wrote:
>
>> They were failing for me a couple of days ago; checking now, they
>> still are, and test_itertools has been added to the list of failing
>> tests:
>>
>> test test_itertools failed -- Traceback (most recent call last):
>>  File "/Users/fdrake/projects/python/py3k/Lib/test/
>> test_itertools.py", line 698, in test_chain
>>    self.assertRaises(TypeError, chain, N(s))
>> AssertionError: TypeError not raised by chain
>>
>
> This looks like an easy one: line 698 of test_itertools.py should
> be changed from
>
>            self.assertRaises(TypeError, chain, N(s))
>
> to
>
>            self.assertRaises(TypeError, list, chain(N(s)))
>
> Here N(s) is an instance of a class lacking a __next__
> method; It looks like Raymond recently altered itertools.chain
> to consume its arguments lazily, so the TypeError used to occur
> as soon as chain(N(s)) was called, and now doesn't happen
> until chain(N(s)).__next__ is first callled.
>
> Shall I check in this fix?

Yes, thanks Mark!  Please say in the commit message that I approved it.

Brett, Neal and I spent several hours this evening trying to track  
down the test_profile failure, but we were unsuccessful.  We suspect  
it's due to a call from C that eventually ends up in StringIO.flush()  
but we were unable to find it.  I'm going to disable this test for the  
3.0 release; someone else is going to have to fix it.

BTW, I am on #python-dev now if anybody wants to help and/or chat  
about the release. I'm also on IM and Jabber.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iQCVAwUBR8i7z3EjvBPtnXfVAQI1NQP/bmVWEdTKZ0niBqjVk003jT4XFiAfUAwr
NOBIK26zLbKeLOy6OiOQyIqnM7MjKweuS6MXZ95u+BUJYVBhfKgYuX2p5Cu+mwQq
N+N7Tsp5RmZ/sDSWMWU4Amsgy/3E9SIx+IesTN7/ExPwfR1GbmlOs+BFmD8+0QDC
O1rkPyaDlZs=
=ZWlC
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list