> def mockit(): raise StopIteration
> now pass mockit()

but it behaviors differenctly when pass in a mockit()  and pass in an
iterator with empty.  so i think the code emulates nothing.

> def intit(k):
>  for i in range(k): yield i

Now you mean define my own iteration without the help of pmock.   but
there are still so many other methods in the iterator for pass in,  i
have to mock them one by one totally manually, its boring and thats the
reason why i want pmock.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to