Hello community, here is the log from the commit of package python-pytz for openSUSE:Factory checked in at 2014-08-13 17:08:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytz (Old) and /work/SRC/openSUSE:Factory/.python-pytz.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pytz" Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytz/python-pytz.changes 2014-07-24 06:58:55.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pytz.new/python-pytz.changes 2014-08-13 17:08:30.000000000 +0200 @@ -1,0 +2,7 @@ +Thu Jul 24 09:41:38 UTC 2014 - mcihar@suse.com + +- Run test suite during build (required disabling of one test as + it is known to be broken) +- Disable broken test (fix-tests.patch) + +------------------------------------------------------------------- New: ---- fix-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytz.spec ++++++ --- /var/tmp/diff_new_pack.n6R94K/_old 2014-08-13 17:08:31.000000000 +0200 +++ /var/tmp/diff_new_pack.n6R94K/_new 2014-08-13 17:08:31.000000000 +0200 @@ -24,9 +24,11 @@ Group: Development/Languages/Python Url: http://pytz.sourceforge.net Source: http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2 +# PATCH-FIX-UPSTREAM fix-tests.patch -- Remote tests which are known to be broken +Patch0: fix-tests.patch BuildRequires: fdupes BuildRequires: python-devel -#BuildRequires: python-nose +BuildRequires: python-nose BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} @@ -49,6 +51,8 @@ %prep %setup -q -n pytz-%{version} +# Disable test which is not working (and documented so) +%patch0 -p1 # For rpmlint warning: remove shebang from python library: sed -i '/^#!/d' ./pytz/tzfile.py @@ -59,8 +63,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %fdupes %{buildroot}%{python_sitelib} -#%%check -#nosetests +%check +nosetests %files %defattr(-,root,root,-) ++++++ fix-tests.patch ++++++ --- a/pytz/tests/test_tzinfo.py +++ b/pytz/tests/test_tzinfo.py @@ -694,15 +694,6 @@ '1914-01-01 13:40:00 UTC+0000' ) - def no_testCreateLocaltime(self): - # It would be nice if this worked, but it doesn't. - tz = pytz.timezone('Europe/Amsterdam') - dt = datetime(2004, 10, 31, 2, 0, 0, tzinfo=tz) - self.assertEqual( - dt.strftime(fmt), - '2004-10-31 02:00:00 CET+0100' - ) - class CommonTimezonesTestCase(unittest.TestCase): def test_bratislava(self): -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org