From c34fbfd87995b7a7a7e408a068e5ae29036fd579 Mon Sep 17 00:00:00 2001 From: Charles Merriam Date: Thu, 29 Jan 2015 17:39:42 -0800 Subject: [PATCH] Have unittest destroy its test file. test_font.py now deletes it unicode named .ttf file during tear-down --- kivy/tests/test_fonts.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kivy/tests/test_fonts.py b/kivy/tests/test_fonts.py index 700995f9c..26939f1ce 100644 --- a/kivy/tests/test_fonts.py +++ b/kivy/tests/test_fonts.py @@ -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) +