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: |