[damned-lies] Refs #228 - Make xml2po optional in the test suite
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Refs #228 - Make xml2po optional in the test suite
- Date: Sat, 17 Apr 2021 09:52:33 +0000 (UTC)
commit 068e4a1539faf26d97f8388b297d6207b116cff7
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Apr 17 11:52:16 2021 +0200
Refs #228 - Make xml2po optional in the test suite
stats/models.py | 2 +-
stats/tests/tests.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/stats/models.py b/stats/models.py
index 92d01811..848bc9b9 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -739,7 +739,7 @@ class Domain(models.Model):
# Fallback is intltool, except for meson modules.
pot_method = 'gettext' if current_branch.uses_meson else 'intltool'
else:
- # Standard gnome-doc-utils pot generation
+ # Standard pot generation
potfile, errs = utils.generate_doc_pot_file(current_branch, self)
errors.extend(errs)
pot_method = None
diff --git a/stats/tests/tests.py b/stats/tests/tests.py
index 1c687718..9b35e72a 100644
--- a/stats/tests/tests.py
+++ b/stats/tests/tests.py
@@ -37,7 +37,6 @@ class ModuleTestCase(TestCase):
SYS_DEPENDENCIES = (
('gettext', 'msgfmt'),
('intltool', 'intltool-update'),
- ('gnome-doc-utils', 'xml2po'),
)
@classmethod
@@ -555,6 +554,7 @@ class DomainTests(TestModuleBase):
)
)
+ @skipUnless(utils.check_program_presence('xml2po'), "xml2po is needed for that test.")
def test_doc_domain_docbook(self):
"""
Test Docbook-style help
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]