File: skip-font-path-test.patch

package info (click to toggle)
python-qtawesome 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,980 kB
  • sloc: python: 1,710; makefile: 177; sh: 10
file content (21 lines) | stat: -rw-r--r-- 714 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
From: Julian Gilbey <jdg@debian.org>
Last-Update: 2025-03-31
Subject: Skip font location test
  We run the tests out-of-tree, but this test assumes that the test file
  is in the installed qtawesome package.
Forwarded: not-needed

--- a/qtawesome/tests/test_qtawesome.py
+++ b/qtawesome/tests/test_qtawesome.py
@@ -82,11 +82,6 @@
         for _prefix, font_filename, _charmap_filename in qta._BUNDLED_FONTS
     ]
     fonts_root_dir, fonts_list = qta.get_fonts_info()
-    assert os.path.normcase(fonts_root_dir) == os.path.normcase(
-        os.path.join(
-            os.path.dirname(os.path.dirname(os.path.realpath(__file__))), "fonts"
-        )
-    )
     assert set(fonts_list) == set(fonts_expected)