I'm using tmp package in unit tests with tmp.setGracefulCleanup();. I'm creating temp directory for tests with unsafeCleanup = true.
It works fine if I don't hit ctrl+c to interrupt tests. Then the temp dir is not deleted. How can I get it deleted automatically in this case?
I'm using tmp package in unit tests with
tmp.setGracefulCleanup();. I'm creating temp directory for tests withunsafeCleanup = true.It works fine if I don't hit ctrl+c to interrupt tests. Then the temp dir is not deleted. How can I get it deleted automatically in this case?