Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(732)

Unified Diff: gslib/tests/test_cp.py

Issue 349010043: Add test for chunked transfer encoding apitools fix (Closed)
Patch Set: Use GSLIB_DIR var Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gslib/tests/test_cp.py
diff --git a/gslib/tests/test_cp.py b/gslib/tests/test_cp.py
index 7108cf2688c1f9cba3c408ad05210a0526fc6c8d..d5bfc6f53e50449edac1a0f535c960b70ddd3596 100644
--- a/gslib/tests/test_cp.py
+++ b/gslib/tests/test_cp.py
@@ -19,6 +19,7 @@ from __future__ import absolute_import
import base64
import binascii
import datetime
+import gslib
import gzip
from hashlib import md5
import httplib
@@ -2963,8 +2964,7 @@ class TestCp(testcase.GsUtilIntegrationTestCase):
bucket_uri = self.CreateBucket()
object_uri = self.CreateObject(bucket_uri=bucket_uri, object_name='foo')
input_filename = os.path.join(
- os.path.dirname(sys.modules['gslib'].__file__),
- 'tests/test_data/favicon.ico.gz')
+ gslib.GSLIB_DIR, 'tests/test_data/favicon.ico.gz')
self.RunGsUtil(['-h', 'Content-Encoding:gzip',
'-h', 'Content-Type:image/x-icon',
'cp', suri(input_filename), suri(object_uri)])
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b