Coding style.

This commit is contained in:
Andrew Hamilton 2016-10-21 17:44:32 +02:00
parent 1b0c62341a
commit c695479499
2 changed files with 41 additions and 33 deletions

View file

@ -42,13 +42,12 @@ class WorkerTestCase(unittest.TestCase):
self._test_worker(None)
def test_run_job_with_sandbox(self):
temp_dir = tempfile.mkdtemp()
sandbox = vigil.make_sandbox(temp_dir)
sandbox = vigil.make_sandbox()
try:
self._test_worker(sandbox)
finally:
sandbox.umount()
os.rmdir(temp_dir)
os.rmdir(sandbox.mount_point)
if __name__ == "__main__":