From c95487e23d960e135955cc64cbbec9e7a3dcd823 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 1 Jun 2016 10:39:27 -0400 Subject: [PATCH] [1.8.x] Refs #26687 -- Made an i18n test not use a hardcoded path separator. This reverts commit c0a1e1984e0028022c5ac0722ff4933317bcdbc2 as it doesn't work on the stable/1.8.x branch and instead uses os.path.join() to fix the original failure on Windows. --- tests/i18n/test_extraction.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index ca2690d0bb..27d1a67fe2 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -523,9 +523,7 @@ 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.assertLocationCommentPresent(self.PO_FILE, None, 'templates_symlinked', 'test.html') - else: - raise SkipTest("os.symlink() not available on this OS + Python version combination.") + self.assertIn(os.path.join('templates_symlinked', 'test.html'), po_contents) class CopyPluralFormsExtractorTests(ExtractorTests):