File: skip-some-tests.patch

package info (click to toggle)
ibus-typing-booster 2.28.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 140,844 kB
  • sloc: xml: 1,123,805; python: 45,233; sh: 5,183; makefile: 371; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,858 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From: Gunnar Hjalmarsson <gunnarhj@debian.org>
Date: Sat, 4 Feb 2023 19:59:10 +0100
Subject: Skip some tests to prevent FTBFS

Disabled tests due to different dictionaries in Debian:
* test_de_DE_cs_CZ_enchant
* test_en_US
* test_en_US_spellcheck_suggest_enchant

Discussed with upstream here:
https://github.com/mike-fabian/ibus-typing-booster/issues/157

Last-Update: 2025-11-21
Forwarded: not-needed
---
 tests/test_hunspell_suggest.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/test_hunspell_suggest.py b/tests/test_hunspell_suggest.py
index a8aa44d..bbae79a 100755
--- a/tests/test_hunspell_suggest.py
+++ b/tests/test_hunspell_suggest.py
@@ -106,6 +106,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
     def test_dummy(self) -> None:
         self.assertEqual(True, True)
 
+    @unittest.skip(
+        "Skipping due to different Czech dictionary in Debian.")
     @unittest.skipUnless(
         IMPORT_ENCHANT_SUCCESSFUL,
         "Skipping because this test requires python3-enchant to work.")
@@ -217,6 +219,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
             h.suggest('tenéis')[0],
             ('tene\u0301is', 0))
 
+    @unittest.skip(
+        "Skipping due to different en_US dictionary in Debian.")
     @unittest.skipUnless(
         itb_util.get_hunspell_dictionary_wordlist('en_US')[0],
         'Skipping because no US English hunspell dictionary could be found.')
@@ -310,6 +314,8 @@ class HunspellSuggestTestCase(unittest.TestCase):
         self.assertEqual(d.spellcheck_enchant('winter'), True)
         self.assertEqual(d.spellcheck_enchant('winxer'), False)
 
+    @unittest.skip(
+        "Skipping due to different en_US dictionary in Debian.")
     @unittest.skipUnless(
         IMPORT_ENCHANT_SUCCESSFUL,
         "Skipping because this test requires python3-enchant to work.")