mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
298e192067
commit
77d1cffec1
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user