[Python-3000] test_profile failing
Mark Dickinson
dickinsm at gmail.com
Sat Mar 1 03:05:45 CET 2008
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?
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080229/9844e7e0/attachment-0001.htm
More information about the Python-3000
mailing list