1 |
commit: ad567322e26c6847d93300f9fea3e180898ee101 |
2 |
Author: Till Schäfer <till2.schaefer <AT> uni-dortmund <DOT> de> |
3 |
AuthorDate: Fri Jun 18 10:35:34 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 18 14:47:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad567322 |
7 |
|
8 |
app-text/nfoview: enable pytest |
9 |
|
10 |
use distutils_enable_tests pytest |
11 |
|
12 |
Closes: https://bugs.gentoo.org/796287 |
13 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
14 |
Signed-off-by: Till Schäfer <till2.schaefer <AT> uni-dortmund.de> |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
app-text/nfoview/nfoview-1.28.ebuild | 14 ++++++++++++-- |
18 |
1 file changed, 12 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/app-text/nfoview/nfoview-1.28.ebuild b/app-text/nfoview/nfoview-1.28.ebuild |
21 |
index c619ae9688c..2b8c11296e6 100644 |
22 |
--- a/app-text/nfoview/nfoview-1.28.ebuild |
23 |
+++ b/app-text/nfoview/nfoview-1.28.ebuild |
24 |
@@ -1,4 +1,4 @@ |
25 |
-# Copyright 1999-2020 Gentoo Authors |
26 |
+# Copyright 1999-2021 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
EAPI=7 |
30 |
@@ -6,7 +6,7 @@ EAPI=7 |
31 |
DISTUTILS_USE_SETUPTOOLS=no |
32 |
PYTHON_COMPAT=( python3_{7,8,9} ) |
33 |
|
34 |
-inherit distutils-r1 xdg |
35 |
+inherit distutils-r1 virtualx xdg |
36 |
|
37 |
if [[ ${PV} == *9999 ]] ; then |
38 |
EGIT_REPO_URI="https://github.com/otsaloma/nfoview.git" |
39 |
@@ -27,3 +27,13 @@ BDEPEND="${PYTHON_DEPS} |
40 |
DEPEND="dev-python/pygobject:3[${PYTHON_USEDEP}]" |
41 |
RDEPEND="${DEPEND} |
42 |
media-fonts/cascadia-code" |
43 |
+ |
44 |
+distutils_enable_tests pytest |
45 |
+ |
46 |
+python_test() { |
47 |
+ local deselect=( |
48 |
+ --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__unix' |
49 |
+ --deselect 'nfoview/test/test_util.py::TestModule::test_show_uri__windows' |
50 |
+ ) |
51 |
+ virtx epytest "${deselect[@]}" |
52 |
+} |