remove unnecessary patch
This commit is contained in:
parent
d597cfb180
commit
078e6f0f2f
1114
pytz-zoneinfo.patch
1114
pytz-zoneinfo.patch
File diff suppressed because it is too large
Load Diff
@ -1,14 +1,11 @@
|
||||
Name: pytz
|
||||
Version: 2019.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: World Timezone Definitions for Python
|
||||
License: MIT
|
||||
URL: http://pytz.sourceforge.net/
|
||||
Source0: https://github.com/stub42/pytz/archive/pytz-2019.2.tar.gz
|
||||
|
||||
Patch0: pytz-zoneinfo.patch
|
||||
Patch1: remove_tzinfo_test.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -71,5 +68,8 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%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
|
||||
- Package init
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
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