remove test_tzinfo.PicklingTest.testRoundtrip which fails with our
system-wide timezone database (#1497572)
This commit is contained in:
parent
ffe82e494e
commit
3edecc0289
@ -6,7 +6,7 @@
|
||||
|
||||
Name: pytz
|
||||
Version: 2017.2
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: World Timezone Definitions for Python
|
||||
|
||||
Group: Development/Languages
|
||||
@ -15,6 +15,8 @@ URL: http://pytz.sourceforge.net/
|
||||
Source0: https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.zip
|
||||
# Patch to use the system supplied zoneinfo files
|
||||
Patch0: pytz-zoneinfo.patch
|
||||
# https://bugzilla.redhat.com/1497572
|
||||
Patch1: remove_tzinfo_test.patch
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel
|
||||
@ -63,6 +65,7 @@ Almost all (over 540) of the Olson timezones are supported.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .zoneinfo
|
||||
%patch1 -p1 -b .removeTest
|
||||
|
||||
|
||||
%build
|
||||
@ -106,6 +109,10 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Mar 17 2018 Matěj Cepl <mcepl@redhat.com> - 2017.2-6
|
||||
- remove test_tzinfo.PicklingTest.testRoundtrip which fails with our
|
||||
system-wide timezone database (#1497572)
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2017.2-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
|
10
remove_tzinfo_test.patch
Normal file
10
remove_tzinfo_test.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/pytz/tests/test_tzinfo.py
|
||||
+++ b/pytz/tests/test_tzinfo.py
|
||||
@@ -146,6 +146,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):
|
||||
dt = datetime(2004, 2, 1, 0, 0, 0)
|
||||
for zone in pytz.all_timezones:
|
Loading…
Reference in New Issue
Block a user