diff --git a/python-biplist.changes b/python-biplist.changes index c8b73cc..61b8f5f 100644 --- a/python-biplist.changes +++ b/python-biplist.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 2 11:42:53 UTC 2020 - Paolo Stivanin + +- 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 diff --git a/python-biplist.spec b/python-biplist.spec index 8535983..ded5eff 100644 --- a/python-biplist.spec +++ b/python-biplist.spec @@ -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 diff --git a/skip-test.patch b/skip-test.patch new file mode 100644 index 0000000..1ec85ab --- /dev/null +++ b/skip-test.patch @@ -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]