Skip to content

Commit

Permalink
[1.9.x] Fixed #26687 -- Made an i18n test not use a hardcoded path se…
Browse files Browse the repository at this point in the history
…parator.

Fixed a failure on Windows.

Backport of e3877c5 from master
  • Loading branch information
ramiro authored and timgraham committed May 31, 2016
1 parent 1f7ab35 commit 25e0273
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/i18n/test_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,9 @@ def test_symlink(self):
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):
Expand Down

0 comments on commit 25e0273

Please sign in to comment.