The fact that you get an error there is an indication that something
in your tests still has a file open in some way, you should fix that ;-)

The "something" was/is sqlite !

I don't know what that's supposed to mean, since I have little context
on the tests, but if a test has managed to get sqlite to open a file,
then it should make sure that file gets closed again, surely?