diff --git a/pytz.spec b/pytz.spec index f4efffb..a2c3f6a 100644 --- a/pytz.spec +++ b/pytz.spec @@ -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 - 2017.2-6 +- remove test_tzinfo.PicklingTest.testRoundtrip which fails with our + system-wide timezone database (#1497572) + * Fri Feb 09 2018 Fedora Release Engineering - 2017.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/remove_tzinfo_test.patch b/remove_tzinfo_test.patch new file mode 100644 index 0000000..6cae9be --- /dev/null +++ b/remove_tzinfo_test.patch @@ -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: