[1.10.x] Refs #26897 -- Added cleanup to i18n test

This commit is contained in:
Claude Paroz 2016-07-14 22:39:28 +02:00
parent 208eead787
commit de9af3912c
1 changed files with 3 additions and 1 deletions

View File

@ -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):