diff options
| author | Ramiro Morales <ramiro@rmorales.net> | 2013-10-01 23:59:19 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2013-10-02 07:35:00 -0300 |
| commit | 4290cc1d6e3cbbb77d4098e15bd4db6c65ee904a (patch) | |
| tree | 59cb6c32a8015a2a2c412e7847c671b6ee340ed8 | |
| parent | 3ec368014d0d74e14a7ed98ccfd638ffe0e62863 (diff) | |
[1.6.x] Made test for issue 19552 compatible with Windows.
Take in account platform path separator. Refs #19552.
651bed0918 from master.
| -rw-r--r-- | tests/i18n/commands/extraction.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/i18n/commands/extraction.py b/tests/i18n/commands/extraction.py index 341fa1b020..c373d29031 100644 --- a/tests/i18n/commands/extraction.py +++ b/tests/i18n/commands/extraction.py @@ -206,13 +206,13 @@ class BasicExtractorTests(ExtractorTests): for w in ws: self.assertTrue(issubclass(w.category, TranslatorCommentWarning)) six.assertRegex(self, str(ws[0].message), - r"The translator-targeted comment 'Translators: ignored i18n comment #1' \(file templates/comments.thtml, line 4\) was ignored, because it wasn't the last item on the line\." + r"The translator-targeted comment 'Translators: ignored i18n comment #1' \(file templates[/\\]comments.thtml, line 4\) was ignored, because it wasn't the last item on the line\." ) six.assertRegex(self, str(ws[1].message), - r"The translator-targeted comment 'Translators: ignored i18n comment #3' \(file templates/comments.thtml, line 6\) was ignored, because it wasn't the last item on the line\." + r"The translator-targeted comment 'Translators: ignored i18n comment #3' \(file templates[/\\]comments.thtml, line 6\) was ignored, because it wasn't the last item on the line\." ) six.assertRegex(self, str(ws[2].message), - r"The translator-targeted comment 'Translators: ignored i18n comment #4' \(file templates/comments.thtml, line 8\) was ignored, because it wasn't the last item on the line\." + r"The translator-targeted comment 'Translators: ignored i18n comment #4' \(file templates[/\\]comments.thtml, line 8\) was ignored, because it wasn't the last item on the line\." ) # Now test .po file contents self.assertTrue(os.path.exists(self.PO_FILE)) |
