mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-05 09:58:06 +02:00
tests/fprintd: Use addCleanup to ensure we remove the test dir
This commit is contained in:
parent
24cd986476
commit
cefe939141
1 changed files with 1 additions and 3 deletions
|
|
@ -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):
|
||||
shutil.rmtree(self.test_dir)
|
||||
|
||||
# From libfprint tests
|
||||
def send_retry(self, retry_error=1):
|
||||
# The default (1) is too-short
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue