On Aug 15, 7:42 pm, [EMAIL PROTECTED] wrote:
> Lie:
>
> >I'm not sure there are any reason to test for failed import in doctest)<
>
> I have code that uses numpy if available, otherwise uses slower normal
> Python code. Inside the doctests I'd like to test both situations...

Why? Is there a difference in result if you have used numpy and python
code? If that is, I smell a bad code. What numpy and python code
version would return in that situation should be the same (practically
it isn't always feasible though).

> Bye,
> bearophile

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

Reply via email to