Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/agate/
Date: Mon, 21 Jun 2021 23:32:52
Message-Id: 1624318363.11c0d4017460fbdecea2209280d790310db6e98a.zmedico@gentoo
1 commit: 11c0d4017460fbdecea2209280d790310db6e98a
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 21 23:23:54 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 21 23:32:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11c0d401
7
8 dev-python/agate: Comment on details of xfails skipped via epytest --deselect
9
10 test_cast_format_locale fails with "locale.Error: unsupported locale setting"
11 which appears to be triggered by these locale settings in the unit tests:
12
13 agate-1.6.2/tests/test_data_types.py:257: def test_cast_format_locale(self):
14 agate-1.6.2/tests/test_data_types.py-258- date_type = Date(date_format='%d-%b-%Y', locale='de_DE')
15 agate-1.6.2/tests/test_data_types.py:381: def test_cast_format_locale(self):
16 agate-1.6.2/tests/test_data_types.py-382- date_type = DateTime(datetime_format='%Y-%m-%d %I:%M %p', locale='ko_KR')
17
18 Bug: https://bugs.gentoo.org/797307
19 Package-Manager: Portage-3.0.20, Repoman-3.0.3
20 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
21
22 dev-python/agate/agate-1.6.2.ebuild | 8 ++++++++
23 1 file changed, 8 insertions(+)
24
25 diff --git a/dev-python/agate/agate-1.6.2.ebuild b/dev-python/agate/agate-1.6.2.ebuild
26 index eaa3487a523..390df28bbab 100644
27 --- a/dev-python/agate/agate-1.6.2.ebuild
28 +++ b/dev-python/agate/agate-1.6.2.ebuild
29 @@ -45,6 +45,14 @@ pytest-expect-to-deselect() {
30 }
31
32 python_test() {
33 + # test_cast_format_locale fails with "locale.Error: unsupported locale setting"
34 + # which appears to be triggered by these locale settings in the unit tests:
35 + #
36 + # agate-1.6.2/tests/test_data_types.py:257: def test_cast_format_locale(self):
37 + # agate-1.6.2/tests/test_data_types.py-258- date_type = Date(date_format='%d-%b-%Y', locale='de_DE')
38 + # agate-1.6.2/tests/test_data_types.py:381: def test_cast_format_locale(self):
39 + # agate-1.6.2/tests/test_data_types.py-382- date_type = DateTime(datetime_format='%Y-%m-%d %I:%M %p', locale='ko_KR')
40 +
41 local -a pytest_args
42 readarray -t pytest_args < <(pytest-expect-to-deselect <<<"
43 pytest-expect file v1