Skip to content

Commit 9aa5c30

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

gcloud/test__helpers.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,9 @@ class Test__get_default_service_project_id(unittest2.TestCase):
186186
config_file = 'config_default'
187187

188188
def setUp(self):
189+
import tempfile
189190
import os
190-
from gcloud._testing import _NamedTemporaryFile
191-
192-
with _NamedTemporaryFile() as temp:
193-
self.temp_config_path = os.path.dirname(temp.name)
191+
self.temp_config_path = tempfile.gettempdir()
194192

195193
conf_path = os.path.join(self.temp_config_path, self.config_path)
196194
os.makedirs(conf_path)

0 commit comments

Comments
 (0)