Skip to content

Commit

Permalink
dev-python/agate: Comment on details of xfails skipped via epytest --…
Browse files Browse the repository at this point in the history
…deselect

test_cast_format_locale fails with "locale.Error: unsupported locale setting"
which appears to be triggered by these locale settings in the unit tests:

  agate-1.6.2/tests/test_data_types.py:257:    def test_cast_format_locale(self):
  agate-1.6.2/tests/test_data_types.py-258-        date_type = Date(date_format='%d-%b-%Y', locale='de_DE')
  agate-1.6.2/tests/test_data_types.py:381:    def test_cast_format_locale(self):
  agate-1.6.2/tests/test_data_types.py-382-        date_type = DateTime(datetime_format='%Y-%m-%d %I:%M %p', locale='ko_KR')

Bug: https://bugs.gentoo.org/797307
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <[email protected]>
  • Loading branch information
zmedico committed Jun 21, 2021
1 parent c14e09f commit 11c0d40
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dev-python/agate/agate-1.6.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ pytest-expect-to-deselect() {
}

python_test() {
# test_cast_format_locale fails with "locale.Error: unsupported locale setting"
# which appears to be triggered by these locale settings in the unit tests:
#
# agate-1.6.2/tests/test_data_types.py:257: def test_cast_format_locale(self):
# agate-1.6.2/tests/test_data_types.py-258- date_type = Date(date_format='%d-%b-%Y', locale='de_DE')
# agate-1.6.2/tests/test_data_types.py:381: def test_cast_format_locale(self):
# agate-1.6.2/tests/test_data_types.py-382- date_type = DateTime(datetime_format='%Y-%m-%d %I:%M %p', locale='ko_KR')

local -a pytest_args
readarray -t pytest_args < <(pytest-expect-to-deselect <<<"
pytest-expect file v1
Expand Down

0 comments on commit 11c0d40

Please sign in to comment.