mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-25 10:48:18 +00:00
Add mktmpdir method to PicardTestCase, and use it more widely
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import os.path
|
||||
import shutil
|
||||
import tempfile
|
||||
|
||||
from test.picardtestcase import PicardTestCase
|
||||
|
||||
@@ -12,8 +10,7 @@ class Testbytes2human(PicardTestCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
# we are using temporary locales for tests
|
||||
self.tmp_path = tempfile.mkdtemp(suffix=self.__class__.__name__)
|
||||
self.addCleanup(shutil.rmtree, self.tmp_path)
|
||||
self.tmp_path = self.mktmpdir()
|
||||
self.localedir = os.path.join(self.tmp_path, 'locale')
|
||||
|
||||
def test_00(self):
|
||||
|
||||
Reference in New Issue
Block a user