diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-07-14 22:39:28 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-07-14 22:40:49 +0200 |
| commit | ab2f5f764a2f6db97e23cccd5c4f5abbb43d1caf (patch) | |
| tree | dc81cb0558622190717a58923f6d823a12c73f05 | |
| parent | e1a60f2ecbc9311744a42e5a7247fd4e8e2a6f91 (diff) | |
[1.9.x] Refs #26897 -- Added cleanup to i18n test
| -rw-r--r-- | tests/i18n/test_extraction.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index cc4d7a81ad..f013b3077c 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -244,7 +244,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): |
