Test fixes.

git-svn-id: http://svn.robofab.com/branches/ufo3k@300 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Tal Leming 2011-09-27 17:56:02 +00:00
parent 1e9e8f5e84
commit 1a66d823da
2 changed files with 8 additions and 6 deletions

View File

@ -86,11 +86,12 @@ class ReadFontInfoVersion1TestCase(unittest.TestCase):
class WriteFontInfoVersion1TestCase(unittest.TestCase):
def setUp(self):
self.dstDir = tempfile.mktemp()
os.mkdir(self.dstDir)
self.tempDir = tempfile.mktemp()
os.mkdir(self.tempDir)
self.dstDir = os.path.join(self.tempDir, "test.ufo")
def tearDown(self):
shutil.rmtree(self.dstDir)
shutil.rmtree(self.tempDir)
def makeInfoObject(self):
infoObject = TestInfoObject()

View File

@ -773,11 +773,12 @@ class ReadFontInfoVersion2TestCase(unittest.TestCase):
class WriteFontInfoVersion2TestCase(unittest.TestCase):
def setUp(self):
self.dstDir = tempfile.mktemp()
os.mkdir(self.dstDir)
self.tempDir = tempfile.mktemp()
os.mkdir(self.tempDir)
self.dstDir = os.path.join(self.tempDir, "test.ufo")
def tearDown(self):
shutil.rmtree(self.dstDir)
shutil.rmtree(self.tempDir)
def makeInfoObject(self):
infoObject = TestInfoObject()