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

Unified Diff: third_party/gsutil/gslib/tests/test_Doption.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/storage_url.py ('k') | third_party/gsutil/gslib/tests/test_cat.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_Doption.py
diff --git a/third_party/gsutil/gslib/tests/test_Doption.py b/third_party/gsutil/gslib/tests/test_Doption.py
index ded088c70d62240de263a45a25010f80049af9e7..b5612a853abfb672307eb767314611c9ff917380 100644
--- a/third_party/gsutil/gslib/tests/test_Doption.py
+++ b/third_party/gsutil/gslib/tests/test_Doption.py
@@ -16,6 +16,8 @@
from __future__ import absolute_import
+import platform
+
import gslib
from gslib.cs_api_map import ApiSelector
import gslib.tests.testcase as testcase
@@ -88,8 +90,9 @@ class TestDOption(testcase.GsUtilIntegrationTestCase):
self.assertIn('header: x-goog-hash: md5=eB5eJF1ptWaXm4bijSPyxw==', stderr)
elif self.test_api == ApiSelector.JSON:
self.assertRegexpMatches(
- stderr, '.*GET.*b/%s/o/%s.*user-agent:.*gsutil/%s' %
- (key_uri.bucket_name, key_uri.object_name, gslib.VERSION))
+ stderr, '.*GET.*b/%s/o/%s.*user-agent:.*gsutil/%s.Python/%s' %
+ (key_uri.bucket_name, key_uri.object_name, gslib.VERSION,
+ platform.python_version()))
self.assertIn(('header: Cache-Control: no-cache, no-store, max-age=0, '
'must-revalidate'), stderr)
self.assertIn("md5Hash: u'eB5eJF1ptWaXm4bijSPyxw=='", stderr)
« no previous file with comments | « third_party/gsutil/gslib/storage_url.py ('k') | third_party/gsutil/gslib/tests/test_cat.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698