comparison hgext/amend.py @ 39478:c4a7ba10cdd7

tests: conditionalize an error message about unlinking a non empty directory The message on Windows comes from win32.unlink(). It looks like os.unlink() on posix platforms is a simple call to unlink(3), which turns into unlinkat(2). Since there's a comment in one of the tests that the message should be improved, I don't think it's worth adding a check in win32.unlink() to see if it's empty, if that function is always going to fail on a directory. (It seems like the POSIX spec allows unlinking directories though.)
author Matt Harbison <matt_harbison@yahoo.com>
date Fri, 07 Sep 2018 23:39:49 -0400
parents 3e549546a6e9
children c303d65d2e34
comparison
equal deleted inserted replaced
39477:8eb2145ff0fb 39478:c4a7ba10cdd7