Skip to content

Commit 969caa4

Browse files
committed
Switch working test back to use tempfile.
1 parent 89bb2be commit 969caa4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gcloud/test__helpers.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,9 @@ class Test__get_default_service_project_id(unittest2.TestCase):
187187

188188
def setUp(self):
189189
import os
190-
from gcloud._testing import _NamedTemporaryFile
190+
import tempfile
191191

192-
with _NamedTemporaryFile() as temp:
193-
self.temp_config_path = os.path.dirname(temp.name)
192+
self.temp_config_path = tempfile.gettempdir()
194193

195194
conf_path = os.path.join(self.temp_config_path, self.config_path)
196195
os.makedirs(conf_path)

0 commit comments

Comments
 (0)