app-admin/xkcdpass: enable py3.14, fix failing test

Signed-off-by: Joe Kappus <joe@wt.gd>
Merges: https://codeberg.org/gentoo/gentoo/pulls/639
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Joe Kappus
2026-04-15 14:33:32 -04:00
committed by Eli Schwartz
parent ee33e929c2
commit 1165a96c07
2 changed files with 21 additions and 1 deletions
@@ -0,0 +1,16 @@
From b981361292ae7328313e116178acacc90680df5e Mon Sep 17 00:00:00 2001
From: Steven Tobin <steven@steventob.in>
Date: Sat, 24 Jan 2026 11:35:40 +0000
Subject: [PATCH] fix failing test
--- a/tests/test_xkcdpass.py
+++ b/tests/test_xkcdpass.py
@@ -29,7 +29,7 @@ def setUp(self):
valid_chars='[a-z]')
def test_loadwordfile(self):
- self.assertEqual(len(self.wordlist_full), 5670)
+ self.assertEqual(len(self.wordlist_full), 29611)
def test_regex(self):
self.assertNotIn("__$$$__", self.wordlist_small)
+5 -1
View File
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..13} )
PYTHON_COMPAT=( python3_{9..14} )
inherit distutils-r1 pypi
DESCRIPTION="Password generator inspired by XKCD 936"
@@ -21,6 +21,10 @@ IUSE="l10n_de +l10n_en l10n_es l10n_fi l10n_fr l10n_it l10n_no l10n_pt"
distutils_enable_tests pytest
REQUIRED_USE="test? ( l10n_en )"
PATCHES=(
"${FILESDIR}"/${P}-fix-failing-test.patch
)
src_prepare() {
default