backports/py3-dateparser: fix tests
This commit is contained in:
parent
51a3f048ca
commit
f4bedbfab6
1 changed files with 4 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
||||
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue