bug 1280326 - followup fix to make MockedOpen really case-insensitive on Windows. r=jmaher

MozReview-Commit-ID: CE2zMBFK6Tx

--HG--
extra : rebase_source : 0119d4b3148d624769b5dbbdb8958d810be4067a
This commit is contained in:
Ted Mielczarek 2016-07-01 07:15:23 -04:00
parent 298e192067
commit 77d1cffec1

View File

@ -185,7 +185,7 @@ class MockedOpen(object):
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
@ -197,7 +197,7 @@ class MockedOpen(object):
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