From de9af3912c766a1ebef1e95bc11076faa831e944 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 14 Jul 2016 22:39:28 +0200 Subject: [PATCH] [1.10.x] Refs #26897 -- Added cleanup to i18n test --- tests/i18n/test_extraction.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 729df0f0fe..f57b1617be 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -258,7 +258,9 @@ class BasicExtractorTests(ExtractorTests): def test_unicode_file_name(self): os.chdir(self.test_dir) - open(os.path.join(self.test_dir, 'vidéo.txt'), 'a').close() + unicode_path = os.path.join(self.test_dir, 'vidéo.txt') + open(unicode_path, 'a').close() + self.addCleanup(self.rmfile, unicode_path) management.call_command('makemessages', locale=[LOCALE], verbosity=0) def test_extraction_warning(self):