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:00:57 -0400 |
| commit | 4095317afb41588a2668e14f1223ac095d22298d (patch) | |
| tree | 185e890311e0bcb565cf5da6f2d29ba0a78b4a9b | |
| parent | 7bc199aa6440b7f527c46a15dd40a48f845a8497 (diff) | |
[1.10.x] Fixed #26687 -- Made an i18n test not use a hardcoded path separator.
Fixed a failure on Windows.
Backport of e3877c53edb33271b0f31d20e60a924848692026 from master
| -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 2c7e7ea6d0..bad7c23051 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -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): |
