From 53f3555f637d4a188a5fca56f8bca50b6953a909 Mon Sep 17 00:00:00 2001 From: Robert Iannucci Date: Thu, 15 Dec 2016 19:09:16 -0800 Subject: [PATCH] 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 Reviewed-by: Andrii Shyshkalov Reviewed-by: Aaron Gable --- tests/gclient_scm_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/gclient_scm_test.py b/tests/gclient_scm_test.py index 8c62491f4..e270d1449 100755 --- a/tests/gclient_scm_test.py +++ b/tests/gclient_scm_test.py @@ -496,8 +496,7 @@ class ManagedGitWrapperTestCase(BaseGitWrapperTestCase): file_path = join(self.base_path, '.git', 'index.lock') with open(file_path, 'w'): pass - with self.assertRaisesRegexp(subprocess2.CalledProcessError, - 'Unable to create.*/index.lock'): + with self.assertRaises(subprocess2.CalledProcessError): scm.update(options, (), []) sys.stdout.close()