summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <ramiro@users.noreply.github.com>2016-05-31 13:00:36 -0300
committerTim Graham <timograham@gmail.com>2016-05-31 12:01:05 -0400
commitc0a1e1984e0028022c5ac0722ff4933317bcdbc2 (patch)
tree039c2c5a1263d2a6d3aa5ceb10f6f89ba50687e3
parentd4ad28dbdd3e7587e67a7ea6558153621fd93b56 (diff)
downloaddjango-c0a1e1984e0028022c5ac0722ff4933317bcdbc2.tar.gz
[1.8.x] Fixed #26687 -- Made an i18n test not use a hardcoded path separator.
Fixed a failure on Windows. Backport of e3877c53edb33271b0f31d20e60a924848692026 from master
-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 8a42d1af7c..ca2690d0bb 100644
--- a/tests/i18n/test_extraction.py
+++ b/tests/i18n/test_extraction.py
@@ -523,7 +523,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):