Merge pull request #2948 from merriam/merriam_branch_3

Have unittest destroy its test file.
This commit is contained in:
dessant 2015-01-30 04:48:27 +02:00
commit a9d294fe59
1 changed files with 6 additions and 0 deletions

View File

@ -19,3 +19,9 @@ class FontTestCase(unittest.TestCase):
lbl = Label(font_name=self.font_name)
lbl.refresh()
self.assertNotEqual(lbl.get_extents(''), None)
def tearDown(self):
import os
if os.path.exists(self.font_name):
os.unlink(self.font_name)