From e1ba44fb3bfab09c11292c7e6fedfdaa1985064f Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 30 Nov 2024 13:19:07 -0500 Subject: [PATCH] backports/py3-dateparser: fix tests --- backports/py3-dateparser/APKBUILD | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/backports/py3-dateparser/APKBUILD b/backports/py3-dateparser/APKBUILD index fa01fe0..17b905e 100644 --- a/backports/py3-dateparser/APKBUILD +++ b/backports/py3-dateparser/APKBUILD @@ -1,8 +1,8 @@ -# Maintainer: Hoang Nguyen +maintainer="Hoang Nguyen " pkgname=py3-dateparser _pyname=${pkgname#py3-} pkgver=1.2.0 -pkgrel=1 +pkgrel=0 pkgdesc="Python parser for human readable dates" url="https://github.com/scrapinghub/dateparser" arch="noarch" @@ -41,14 +41,9 @@ build() { check() { # test_relative_base_setting_2_en fails due to tzinfo mismatch - _test_filter="not test_parsing_date_should_fail_using_datetime_strptime_if_locale_is_non_english \ - and not test_relative_base_setting_2_en" # test_custom_language_detect_fast_text fails due to wrong file format - case "$CARCH" in - s390x) - _test_filter="$_test_filter and not test_custom_language_detect_fast_text" - ;; - esac + _test_filter="not test_parsing_date_should_fail_using_datetime_strptime_if_locale_is_non_english \ + and not test_relative_base_setting_2_en and not test_custom_language_detect_fast_text" python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl