mirror of
https://github.com/django/django.git
synced 2025-07-19 09:09:13 +00:00
[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.
This commit is contained in:
parent
c0a1e1984e
commit
c95487e23d
@ -523,9 +523,7 @@ 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.assertLocationCommentPresent(self.PO_FILE, None, 'templates_symlinked', 'test.html')
|
self.assertIn(os.path.join('templates_symlinked', 'test.html'), po_contents)
|
||||||
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