Fixed #26687 -- Made an i18n test not use a hardcoded path separator.

Fixed a failure on Windows.
This commit is contained in:
Ramiro Morales 2016-05-31 13:00:36 -03:00 committed by Tim Graham
parent 47f22e8286
commit e3877c53ed
1 changed files with 3 additions and 1 deletions

View File

@ -554,7 +554,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):