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

Unified Diff: third_party/gsutil/gslib/tests/test_hash.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 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 | « third_party/gsutil/gslib/tests/test_defacl.py ('k') | third_party/gsutil/gslib/tests/test_mv.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/gslib/tests/test_hash.py
diff --git a/third_party/gsutil/gslib/tests/test_hash.py b/third_party/gsutil/gslib/tests/test_hash.py
index 8d1da4f54cf97b3cf0116110a605356fb769dbd0..033c5f9b16d142dbf10f6d771397512a4289aa20 100644
--- a/third_party/gsutil/gslib/tests/test_hash.py
+++ b/third_party/gsutil/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:
« no previous file with comments | « third_party/gsutil/gslib/tests/test_defacl.py ('k') | third_party/gsutil/gslib/tests/test_mv.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698