forked from pool/python-pilkit
- Add patch to fix tests with new PIL (due to ordering there were
2 png returns and randomly on py2 it could return apng instead of just png: * pil-fix-test.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pilkit?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
072df9bcd5
commit
99aec33aaf
13
pil-fix-test.patch
Normal file
13
pil-fix-test.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
Index: pilkit-2.0/tests/test_utils.py
|
||||
===================================================================
|
||||
--- pilkit-2.0.orig/tests/test_utils.py
|
||||
+++ pilkit-2.0/tests/test_utils.py
|
||||
@@ -16,7 +16,7 @@ def test_extension_to_format():
|
||||
|
||||
|
||||
def test_format_to_extension_no_init():
|
||||
- eq_(format_to_extension('PNG'), '.png')
|
||||
+ eq_(format_to_extension('GIF'), '.gif')
|
||||
eq_(format_to_extension('ICO'), '.ico')
|
||||
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 18 10:15:40 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Add patch to fix tests with new PIL (due to ordering there were
|
||||
2 png returns and randomly on py2 it could return apng instead
|
||||
of just png:
|
||||
* pil-fix-test.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:51:33 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pilkit
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,6 +26,7 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/matthewwithanm/pilkit/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz
|
||||
Patch0: pil-fix-test.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -49,6 +50,7 @@ interface for performing manipulations on PIL images.
|
||||
|
||||
%prep
|
||||
%setup -q -n pilkit-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
Reference in New Issue
Block a user