Commit 53f3555f authored by Robert Iannucci's avatar Robert Iannucci Committed by Commit Bot

Fix depot_tools test for git 2.11

We were checking for output which has been dropped from 2.11.0, so loosen the
test a bit.

BUG=670678

Change-Id: Ic610c76ceed4ab42a3b9f2bb8b952a3689658cbf
Reviewed-on: https://chromium-review.googlesource.com/416402
Commit-Queue: Robbie Iannucci <iannucci@chromium.org>
Reviewed-by: 's avatarAndrii Shyshkalov <tandrii@chromium.org>
Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
parent b2cc4a94
...@@ -496,8 +496,7 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): ...@@ -496,8 +496,7 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase):
file_path = join(self.base_path, '.git', 'index.lock') file_path = join(self.base_path, '.git', 'index.lock')
with open(file_path, 'w'): with open(file_path, 'w'):
pass pass
with self.assertRaisesRegexp(subprocess2.CalledProcessError, with self.assertRaises(subprocess2.CalledProcessError):
'Unable to create.*/index.lock'):
scm.update(options, (), []) scm.update(options, (), [])
sys.stdout.close() sys.stdout.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment