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 across Python implementations: it normalizes the path to make it
>> right for the platform.  From the docs: "On Windows, it converts forward
>> slashes to backward slashes." D'oh, that just makes the problem worse...
>>
>> And it turns out changing ".../django/newforms" to "...newforms" in the
>> expected data isn't enough.  Where the files are two levels deep, there
>> are backslashes further in also:
>>
>>     
>
> Perhaps this can be fixed by changing the definition of the path
> variable, earlier in the test code.
>
> Then again, perhaps this is one instance where writing the
> tests using PyUnit would be easier than doing it with doctest.
>
>
> Nick
> >
>
>   

-- 
Ned Batchelder, http://nedbatchelder.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to