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

Unified Diff: third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.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
Index: third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.py
diff --git a/third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.py b/third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.py
index 2276d98e59854b1256f81fcc79d98f2ed3e4d794..72a4821365fe0d22cbb12c68a9d6fe66ad473d75 100644
--- a/third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.py
+++ b/third_party/gsutil/third_party/apitools/samples/storage_sample/downloads_test.py
@@ -37,7 +37,9 @@ class DownloadsTest(unittest.TestCase):
self.__buffer, auto_transfer=auto_transfer)
def __GetTestdataFileContents(self, filename):
- file_contents = open('testdata/%s' % filename).read()
+ file_path = os.path.join(
+ os.path.dirname(__file__), self._TESTDATA_PREFIX, filename)
+ file_contents = open(file_path).read()
self.assertIsNotNone(
file_contents, msg=('Could not read file %s' % filename))
return file_contents

Powered by Google App Engine
This is Rietveld 408576698