summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-07-14 22:39:28 +0200
committerClaude Paroz <claude@2xlibre.net>2016-07-14 22:39:28 +0200
commitde9af3912c766a1ebef1e95bc11076faa831e944 (patch)
treeb09d561817d321e9d624a92f0c37f94ddef4a1a1 /tests
parent208eead7874ef19b2a72ecf442eb4a5067cc8d7d (diff)
[1.10.x] Refs #26897 -- Added cleanup to i18n test
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/test_extraction.py4
1 files changed, 3 insertions, 1 deletions
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):