We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89bb2be commit 9aa5c30Copy full SHA for 9aa5c30
gcloud/test__helpers.py
@@ -186,11 +186,9 @@ class Test__get_default_service_project_id(unittest2.TestCase):
186
config_file = 'config_default'
187
188
def setUp(self):
189
+ import tempfile
190
import os
- from gcloud._testing import _NamedTemporaryFile
191
-
192
- with _NamedTemporaryFile() as temp:
193
- self.temp_config_path = os.path.dirname(temp.name)
+ self.temp_config_path = tempfile.gettempdir()
194
195
conf_path = os.path.join(self.temp_config_path, self.config_path)
196
os.makedirs(conf_path)
0 commit comments