forked from pool/python-biplist
Accepting request 790918 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/790918 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-biplist?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 2 11:42:53 UTC 2020 - Paolo Stivanin <info@paolostivanin.com>
|
||||
|
||||
- Remove nose dep as upstream is using unittest
|
||||
- Add skip-test.patch to disable a failing test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:46:09 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-biplist
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -25,8 +25,9 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://bitbucket.org/wooster/biplist
|
||||
Source: https://files.pythonhosted.org/packages/source/b/biplist/biplist-%{version}.tar.gz
|
||||
# Test on 32bit expects long==int which is true only on py3
|
||||
Patch0: skip-test.patch
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@@ -42,6 +43,7 @@ plists which can be read by OS X, iOS, or other clients.
|
||||
|
||||
%prep
|
||||
%setup -q -n biplist-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -51,8 +53,7 @@ plists which can be read by OS X, iOS, or other clients.
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
# Test on 32bit expects long==int which is true only on py3
|
||||
%python_expand nosetests-%{$python_bin_suffix} -e testIntBoundaries
|
||||
%python_exec -m unittest discover -s tests -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
13
skip-test.patch
Normal file
13
skip-test.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/tests/test_write.py.orig 2020-04-02 15:40:20.717579396 +0200
|
||||
+++ b/tests/test_write.py 2020-04-02 15:44:49.306034847 +0200
|
||||
@@ -271,8 +271,9 @@
|
||||
self.fail("Number is not a valid key in Cocoa.")
|
||||
except InvalidPlistException as e:
|
||||
pass
|
||||
-
|
||||
+
|
||||
def testIntBoundaries(self):
|
||||
+ self.skipTest("doesn't work on py2 i586")
|
||||
edges = [0xff, 0xffff, 0xffffffff]
|
||||
for edge in edges:
|
||||
cases = [edge, edge-1, edge+1, edge-2, edge+2, edge*2, edge/2]
|
||||
Reference in New Issue
Block a user