summaryrefslogtreecommitdiff
path: root/python/samba
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba')
-rw-r--r--python/samba/tests/samdb_api.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/python/samba/tests/samdb_api.py b/python/samba/tests/samdb_api.py
index a7260180187..710d0bc310f 100644
--- a/python/samba/tests/samdb_api.py
+++ b/python/samba/tests/samdb_api.py
@@ -29,15 +29,7 @@ class SamDBApiTestCase(TestCaseInTempDir):
super(SamDBApiTestCase, self).setUp()
def tearDown(self):
- try:
- os.remove(self.tempdir + "/test.db")
- except OSError as e:
- self.assertEqual(e.errno, errno.ENOENT)
-
- try:
- os.remove(self.tempdir + "/existing.db")
- except OSError as e:
- self.assertEqual(e.errno, errno.ENOENT)
+ self.rm_files("test.db", "existing.db", allow_missing=True)
super(SamDBApiTestCase, self).tearDown()