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)]) |