Add blank lines to improve readability

This commit is contained in:
Vladimir Diaz 2017-07-14 11:24:53 -04:00
parent a1b61e9d6f
commit 31e4f1ccf0
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A

View file

@ -85,7 +85,7 @@ def tearDown(self):
try:
# OSError will occur if the directory was already removed.
cleanup_function()
except OSError:
pass
@ -93,11 +93,15 @@ def tearDown(self):
def make_temp_directory(self, directory=None):
"""Creates and returns an absolute path of a directory."""
prefix = self.__class__.__name__+'_'
temp_directory = tempfile.mkdtemp(prefix=prefix, dir=directory)
def _destroy_temp_directory():
shutil.rmtree(temp_directory)
self._cleanup.append(_destroy_temp_directory)
return temp_directory