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

Unified Diff: tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py
diff --git a/tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py b/tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py
index 8d1da4f54cf97b3cf0116110a605356fb769dbd0..033c5f9b16d142dbf10f6d771397512a4289aa20 100644
--- a/tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py
+++ b/tools/telemetry/third_party/gsutilz/gslib/tests/test_hash.py
@@ -41,7 +41,8 @@ class TestHash(testcase.GsUtilUnitTestCase):
self.RunCommand('hash', args=['non-existent-file'])
self.fail('Did not get expected CommandException')
except CommandException, e:
- self.assertRaisesRegexp(e, r'No files matched')
+ # assertRaisesRegexp causes issues with python 2.6.
+ self.assertIn('No files matched', e.reason)
def testHashCloudObject(self):
try:

Powered by Google App Engine
This is Rietveld 408576698