backports/py3-dateparser: fix tests
This commit is contained in:
parent
b91f3b9ff9
commit
e1ba44fb3b
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
|
pkgname=py3-dateparser
|
||||||
_pyname=${pkgname#py3-}
|
_pyname=${pkgname#py3-}
|
||||||
pkgver=1.2.0
|
pkgver=1.2.0
|
||||||
pkgrel=1
|
pkgrel=0
|
||||||
pkgdesc="Python parser for human readable dates"
|
pkgdesc="Python parser for human readable dates"
|
||||||
url="https://github.com/scrapinghub/dateparser"
|
url="https://github.com/scrapinghub/dateparser"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -41,14 +41,9 @@ build() {
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
# test_relative_base_setting_2_en fails due to tzinfo mismatch
|
# 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
|
# test_custom_language_detect_fast_text fails due to wrong file format
|
||||||
case "$CARCH" in
|
_test_filter="not test_parsing_date_should_fail_using_datetime_strptime_if_locale_is_non_english \
|
||||||
s390x)
|
and not test_relative_base_setting_2_en and not test_custom_language_detect_fast_text"
|
||||||
_test_filter="$_test_filter and not test_custom_language_detect_fast_text"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||||
.testenv/bin/python3 -m installer .dist/*.whl
|
.testenv/bin/python3 -m installer .dist/*.whl
|
||||||
|
|
Loading…
Reference in a new issue