diff options
| author | Ramiro Morales <ramiro@users.noreply.github.com> | 2016-05-31 13:00:36 -0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-05-31 12:01:00 -0400 |
| commit | 25e0273a05564e1ce3bd97ab83a5ebd907970273 (patch) | |
| tree | e959d810c8111b8bd77737dbb0d619410947e846 /tests | |
| parent | 1f7ab35c88953742521690c086c642d8229ffa53 (diff) | |
[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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/test_extraction.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 2673c93288..8ca9bdd779 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -540,7 +540,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): |
