D7731: tests: fix failing doctest in match.py by adding dummy auditor
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Tue Jan 7 23:41:26 EST 2020
mharbison72 added a comment.
In D7731#114648 <https://phab.mercurial-scm.org/D7731#114648>, @martinvonz wrote:
> In D7731#114647 <https://phab.mercurial-scm.org/D7731#114647>, @mharbison72 wrote:
>
>> Oddly, it's not an issue on Windows. No idea why that's the case. What's the stacktrace look like?
>
> +**********************************************************************
> +File "/usr/local/google/home/martinvonz/hg/mercurial/match.py", line 948, in mercurial.match.subdirmatcher
> +Failed example:
> + m1 = match(util.localpath(b'/root'), b'', [b'a.txt', b'sub/b.txt'])
> ...
> + File "/usr/local/google/home/martinvonz/hg/mercurial/pathutil.py", line 125, in _checkfs
> + st = os.lstat(curpath)
> + OSError: [Errno 13] Permission denied: '/root/sub'
> +**********************************************************************
OK, thanks. We hit that path on Windows, so it must be something about the `os.lstat` implementation that differs.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D7731/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D7731
To: martinvonz, #hg-reviewers, marmoute, mharbison72
Cc: mharbison72, marmoute, mercurial-devel
More information about the Mercurial-devel
mailing list