Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Unified Diff: testing_support/filesystem_mock.py

Issue 11569018: Suggest owners for OWNERS files that only have per-file owners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « owners.py ('k') | tests/owners_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/filesystem_mock.py
diff --git a/testing_support/filesystem_mock.py b/testing_support/filesystem_mock.py
index 49f7c890b38a7a1eddeba2f7ec430371c4e91b16..07e1834ffe14aecbfab2441c20db51eb4077e47b 100644
--- a/testing_support/filesystem_mock.py
+++ b/testing_support/filesystem_mock.py
@@ -46,6 +46,9 @@ class MockFileSystem(object):
def exists(self, path):
return self.isfile(path) or self.isdir(path)
+ def isabs(self, path):
+ return path.startswith(self.sep)
M-A Ruel 2012/12/13 23:25:16 I assume you don't mind if this doesn't pass on Wi
+
def isfile(self, path):
return path in self.files and self.files[path] is not None
« no previous file with comments | « owners.py ('k') | tests/owners_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698