From e3877c53edb33271b0f31d20e60a924848692026 Mon Sep 17 00:00:00 2001 From: Ramiro Morales Date: Tue, 31 May 2016 13:00:36 -0300 Subject: [PATCH] Fixed #26687 -- Made an i18n test not use a hardcoded path separator. Fixed a failure on Windows. --- 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 2c7e7ea6d0..bad7c23051 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -554,7 +554,9 @@ class SymlinkExtractorTests(ExtractorTests): with open(self.PO_FILE, 'r') as fp: po_contents = force_text(fp.read()) self.assertMsgId('This literal should be included.', po_contents) - self.assertIn('templates_symlinked/test.html', po_contents) + self.assertLocationCommentPresent(self.PO_FILE, None, 'templates_symlinked', 'test.html') + else: + raise SkipTest("os.symlink() not available on this OS + Python version combination.") class CopyPluralFormsExtractorTests(ExtractorTests):