Commit cefe9391 authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

tests/fprintd: Use addCleanup to ensure we remove the test dir

parent 24cd9864
......@@ -256,12 +256,10 @@ class FPrintdTest(dbusmock.DBusTestCase):
def setUp(self):
self.test_dir = tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, self.test_dir)
self.state_dir = os.path.join(self.test_dir, 'state')
self.run_dir = os.path.join(self.test_dir, 'run')
def tearDown(self):
# From libfprint tests
def send_retry(self, retry_error=1):
# The default (1) is too-short
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment