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

Unified Diff: tests/owners_finder_test.py

Issue 2148153002: Fix per-file owners check for deleted files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Rebase! Created 4 years, 5 months 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 | « presubmit_support.py ('k') | tests/owners_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/owners_finder_test.py
diff --git a/tests/owners_finder_test.py b/tests/owners_finder_test.py
index 779361294dffc3a6a27f0c9c7fc742059093a26f..1d9e08366b121d903d6ce21d145167445df8f179 100755
--- a/tests/owners_finder_test.py
+++ b/tests/owners_finder_test.py
@@ -65,11 +65,10 @@ def test_repo():
class OutputInterceptedOwnersFinder(owners_finder.OwnersFinder):
def __init__(self, files, local_root,
- fopen, os_path, glob,
- disable_color=False):
+ fopen, os_path, disable_color=False):
super(OutputInterceptedOwnersFinder, self).__init__(
files, local_root, None,
- fopen, os_path, glob, disable_color=disable_color)
+ fopen, os_path, disable_color=disable_color)
self.output = []
self.indentation_stack = []
@@ -108,13 +107,11 @@ class _BaseTestCase(unittest.TestCase):
self.repo = test_repo()
self.root = '/'
self.fopen = self.repo.open_for_reading
- self.glob = self.repo.glob
def ownersFinder(self, files):
finder = OutputInterceptedOwnersFinder(files, self.root,
fopen=self.fopen,
os_path=self.repo,
- glob=self.glob,
disable_color=True)
return finder
« no previous file with comments | « presubmit_support.py ('k') | tests/owners_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698