mirror of https://github.com/kivy/kivy.git
Merge pull request #2948 from merriam/merriam_branch_3
Have unittest destroy its test file.
This commit is contained in:
commit
a9d294fe59
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue