Make tear down more robust on Unix

This commit is contained in:
Kovid Goyal 2025-12-29 10:58:35 +05:30
parent d06a89bc15
commit bb35553a58
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -45,7 +45,9 @@ class BaseTest(unittest.TestCase):
import atexit
atexit.register(shutil.rmtree, x)
else:
raise
import time
time.sleep(1)
shutil.rmtree(x)
def create_db(self, library_path):
from calibre.library.database2 import LibraryDatabase2