File: 0005-skip-fluent-tests.patch

package info (click to toggle)
translate-toolkit 3.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,412 kB
  • sloc: python: 64,288; sh: 1,406; makefile: 185; xml: 48
file content (26 lines) | stat: -rw-r--r-- 769 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: Stuart Prescott <stuart@debian.org>
Date: Fri, 14 Mar 2025 23:52:43 +1100
Subject: skip tests that use unpackaged 'fluent.syntax'

Forwarded: not-needed

fluent.syntax is not yet in Debian so suppress tests that would fail due to
its absence.
---
 tests/translate/storage/test_fluent.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/translate/storage/test_fluent.py b/tests/translate/storage/test_fluent.py
index 9d8d198..7bfa1ba 100644
--- a/tests/translate/storage/test_fluent.py
+++ b/tests/translate/storage/test_fluent.py
@@ -25,6 +25,9 @@ from typing import Any
 
 from pytest import raises
 
+from pytest import importorskip
+importorskip("translate.storage.fluent")
+
 from translate.storage import fluent
 
 from . import test_monolingual