I was wary of re-implementing the logic in the test, just because it
makes the test somewhat opaque.
In the end, I added a helper function to clean the path results,
submitted a patch: http://code.djangoproject.com/ticket/6868
--Ned.
http://nedbatchelder.com/blog
Malcolm Tredinnick wrote:
> On
On Sun, 2008-03-23 at 11:15 -0400, Ned Batchelder wrote:
[...]
> Here's one of the tests in question:
>
> >>> f = forms.FilePathField(path=path)
> >>> f.choices.sort()
> >>> f.choices
> [('.../django/newforms/__init__.py', '__init__.py'),
> ('.../django/newforms/__init__.pyc', '__init__.pyc'
I'm not familiar with PyUnit. How would it be easier?
--Ned.
Nick wrote:
> On Mar 23, 3:37 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote:
>
>> That was my first instinct too, then I had to re-discover (for the
>> umpteenth time!) that normpath does not normalize a path to make it the
>> same a
On Mar 23, 3:37 pm, Ned Batchelder <[EMAIL PROTECTED]> wrote:
> That was my first instinct too, then I had to re-discover (for the
> umpteenth time!) that normpath does not normalize a path to make it the
> same across Python implementations: it normalizes the path to make it
> right for the platf