!14 enable check and fix test_gettz_badzone_unicode fail

From: @tong_1001
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2021-09-10 07:30:59 +00:00 committed by Gitee
commit 711b4e31de

View File

@ -3,7 +3,7 @@
Name: python-dateutil Name: python-dateutil
Version: 2.8.1 Version: 2.8.1
Release: 2 Release: 3
Epoch: 1 Epoch: 1
Summary: Powerful extensions to datetime Summary: Powerful extensions to datetime
License: Apache 2.0 or BSD License: Apache 2.0 or BSD
@ -19,6 +19,7 @@ Buildrequires: gdb
%package -n python2-%{_name} %package -n python2-%{_name}
Summary: %{summary} Summary: %{summary}
Buildrequires: python2-devel python2-setuptools python2-setuptools_scm python2-six Buildrequires: python2-devel python2-setuptools python2-setuptools_scm python2-six
Buildrequires: python2-freezegun python2-pytest python2-hypothesis
Requires: python2-six tzdata Requires: python2-six tzdata
%{?python_provide:%python_provide python2-%{_name}} %{?python_provide:%python_provide python2-%{_name}}
@ -28,6 +29,7 @@ Requires: python2-six tzdata
%package -n python3-%{_name} %package -n python3-%{_name}
Summary: %{summary} Summary: %{summary}
Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python2-six Buildrequires: python3-devel python3-setuptools python3-setuptools_scm python2-six
Buildrequires: python3-freezegun python3-pytest python3-hypothesis
Requires: python3-six tzdata Requires: python3-six tzdata
%{?python_provide:%python_provide python3-%{_name}} %{?python_provide:%python_provide python3-%{_name}}
@ -48,8 +50,9 @@ Requires: python3-six tzdata
%py3_install %py3_install
%check %check
%{__python2} setup.py test export LANG=en_US.UTF-8
%{__python3} setup.py test %{__python2} -m pytest
%{__python3} -m pytest
%files -n python2-%{_name} %files -n python2-%{_name}
%defattr(-,root,root) %defattr(-,root,root)
@ -70,6 +73,12 @@ Requires: python3-six tzdata
%doc NEWS PKG-INFO RELEASING %doc NEWS PKG-INFO RELEASING
%changelog %changelog
* Wed Sep 08 2021 shixuantong <shixuantong@huawei.com> - 1:2.8.1-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:enable check and fix test_gettz_badzone_unicode fail
* Wed May 13 2020 wangchen<wangchen137@huawei.com> - 1:2.8.1-2 * Wed May 13 2020 wangchen<wangchen137@huawei.com> - 1:2.8.1-2
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA