This whole exercise puts me in mind of the several levels of testing: unit, 
integration, and system.  Unit tests can only take you so far.  In the case 
of these os.path-like functions, a unit test could prove that the output 
equals the intended output, but it could not show that all consuming 
modules expect the function to act that way.

On Tuesday, April 18, 2023 at 12:58:46 PM UTC-4 Thomas Passin wrote:

> g.os_path_join() is still doing the right thing on my system.
>
> On Tuesday, April 18, 2023 at 12:34:10 PM UTC-4 Edward K. Ream wrote:
>
>> On Tuesday, April 18, 2023 at 11:10:29 AM UTC-5 Edward K. Ream wrote:
>>
>> I've made copies of the g.os_path_expanduser and g.os_path_join as they 
>> existed in Leo 6.7.2.  We can't go back to the exact legacy code, but I'll 
>> take yet another look after I take a break.
>>
>>
>> As of rev ca92d1f 
>> <https://github.com/leo-editor/leo-editor/commit/ca92d1f510934f18f7c8442c5b3b057fa8935fc6>
>>  
>> in devel, g.os_path_expanduser calls os.path.normpath, as in Leo 6.7.2.
>>
>> This change should ensure that all legacy scripts and plugins work 
>> exactly as before.
>>
>> As always, please report any problems.
>>
>> Edward
>>
>> P.S. g.os_path_join needs no further changes. It should be exactly 
>> equivalent to the legacy version.
>>
>> EKR
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/29ec3f4a-2dba-45c2-bbc1-ea7d3575d059n%40googlegroups.com.

Reply via email to