author | Ted Mielczarek <ted@mielczarek.org> |
Fri, 01 Jul 2016 07:15:23 -0400 | |
changeset 343443 | f531396cd66b517efa632d0d61db3b6a569ba6ae |
parent 343442 | 903165e388f4a44f84bd551d49317b15c4b87646 |
child 343444 | 9d17de23a08caf37660b65d1bef9755174bc4eb7 |
push id | 6389 |
push user | raliiev@mozilla.com |
push date | Mon, 19 Sep 2016 13:38:22 +0000 |
treeherder | mozilla-beta@01d67bfe6c81 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | jmaher |
bugs | 1280326 |
milestone | 50.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
config/mozunit.py | file | annotate | diff | comparison | revisions |
--- a/config/mozunit.py +++ b/config/mozunit.py @@ -180,28 +180,28 @@ class MockedOpen(object): self._wrapped_isdir(p) or self._orig_path_exists(p)) def _wrapped_isfile(self, p): p = normcase(p) if p in self.files: return True - abspath = os.path.abspath(p) + abspath = normcase(os.path.abspath(p)) if abspath in self.files: return True return self._orig_path_isfile(p) def _wrapped_isdir(self, p): p = normcase(p) p = p if p.endswith(('/', '\\')) else p + os.sep if any(f.startswith(p) for f in self.files): return True - abspath = os.path.abspath(p) + os.sep + abspath = normcase(os.path.abspath(p) + os.sep) if any(f.startswith(abspath) for f in self.files): return True return self._orig_path_exists(p) def main(*args, **kwargs): unittest.main(testRunner=MozTestRunner(), *args, **kwargs)