Python 3.2 introduced ntpath.samefile, but the implementation is not tested in test_ntpath.py. The same seems true of ntpath.sameopenfile. As noted in #10684 ntpath.samefile is broken on XP, which would have been caught by unittest. I've committed a fix for that particular bug, but haven't added unittests.
There are tests for samefile and sameopenfile in test_genericpath.GenericTest which is included by test_ntpath (NtCommonTest subclasses test_genericpath.CommonTest which again subclasses GenericTest). I cannot easily test on Windows (the only windows systems I've easy access to are production boxes using py2.7), but if my analysis is correct this issue can be closed
That's true of the default branch due to some changes I recently made in the implementation of the functions, but we should probably put tests into 3.2/3.3.
Given that several comments say "this should be done", and your analysis indicates it is done, I think it should be safe to close it :) Thanks for the nudge.
History
Date
User
Action
Args
2022-04-11 14:57:17
admin
set
github: 56227
2015-05-14 12:22:37
r.david.murray
set
status: open -> closednosy: + r.david.murraymessages: + resolution: fixedstage: test needed -> resolved