回退 'Pull Request !1 : remove unnecessary patches'
This commit is contained in:
parent
d676da7638
commit
d79208ac51
1114
pytz-zoneinfo.patch
Normal file
1114
pytz-zoneinfo.patch
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,11 +1,14 @@
|
|||||||
Name: pytz
|
Name: pytz
|
||||||
Version: 2019.2
|
Version: 2019.2
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: World Timezone Definitions for Python
|
Summary: World Timezone Definitions for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://pytz.sourceforge.net/
|
URL: http://pytz.sourceforge.net/
|
||||||
Source0: https://github.com/stub42/pytz/archive/pytz-2019.2.tar.gz
|
Source0: https://github.com/stub42/pytz/archive/pytz-2019.2.tar.gz
|
||||||
|
|
||||||
|
Patch0: pytz-zoneinfo.patch
|
||||||
|
Patch1: remove_tzinfo_test.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -68,8 +71,5 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Jan 11 2020 zhangrui <zhangrui182@huawei.com> - 2019.2-2
|
|
||||||
- remove unnecessary patches
|
|
||||||
|
|
||||||
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 2019.2-1
|
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 2019.2-1
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
12
remove_tzinfo_test.patch
Normal file
12
remove_tzinfo_test.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff --git a/pytz/tests/test_tzinfo.py b/pytz/tests/test_tzinfo.py
|
||||||
|
index b2640a8..4f5322b 100644
|
||||||
|
--- a/pytz/tests/test_tzinfo.py
|
||||||
|
+++ b/pytz/tests/test_tzinfo.py
|
||||||
|
@@ -155,6 +155,7 @@ class PicklingTest(unittest.TestCase):
|
||||||
|
self._roundtrip_tzinfo(localized_tz)
|
||||||
|
self._roundtrip_datetime(dt.replace(tzinfo=localized_tz))
|
||||||
|
|
||||||
|
+ @unittest.skip('Fails with system-wide timezone database')
|
||||||
|
def testRoundtrip(self):
|
||||||
|
for zone in pytz.all_timezones:
|
||||||
|
tz = pytz.timezone(zone)
|
||||||
Loading…
x
Reference in New Issue
Block a user