|
From: Waylan L. <wa...@gm...> - 2008-08-21 21:51:41
|
On Thu, Aug 21, 2008 at 5:26 PM, Artem Yunusov <ne...@gm...> wrote:
> Kjell Magne Fauske wrote:
>>
>> 1. Converting an empty string raises an exception:
>>
>
> Fixed it :)
Except you brought back the old problem. I remember what it was now:
In [1]: md.convert(None)
Out[1]: u''
In [2]: md.convert('foo')
Out[2]: u'<p>foo</p>'
In [3]: md.convert(None)
Out[3]: u'<p>foo</p>'
Obviously, that last one is wrong. Of course, the reason is that we
are using the same instance for each, but that's the point - we want
to support that usecase. That's why I need to write some UnitTests -
or at least some doctests.
--
----
Waylan Limberg
wa...@gm...
|