mirror of
https://github.com/django/django.git
synced 2025-07-19 17:19:12 +00:00
[1.9.x] Fixed #26687 -- Made an i18n test not use a hardcoded path separator.
Fixed a failure on Windows. Backport of e3877c53edb33271b0f31d20e60a924848692026 from master
This commit is contained in:
parent
1f7ab35c88
commit
25e0273a05
@ -540,7 +540,9 @@ class SymlinkExtractorTests(ExtractorTests):
|
|||||||
with open(self.PO_FILE, 'r') as fp:
|
with open(self.PO_FILE, 'r') as fp:
|
||||||
po_contents = force_text(fp.read())
|
po_contents = force_text(fp.read())
|
||||||
self.assertMsgId('This literal should be included.', po_contents)
|
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):
|
class CopyPluralFormsExtractorTests(ExtractorTests):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user