[packages/python-ipython_genutils] switch to pynose for python3 tests; rel 12
atler
atler at pld-linux.org
Sat Apr 19 15:28:21 CEST 2025
commit 8fcfe9a90290cc8772f036ee4ae6b7a418f7985b
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Apr 19 14:47:18 2025 +0200
switch to pynose for python3 tests; rel 12
pynose.patch | 23 +++++++++++++++++++++++
python-ipython_genutils.spec | 8 +++++---
2 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/python-ipython_genutils.spec b/python-ipython_genutils.spec
index 16d3fec..08973ed 100644
--- a/python-ipython_genutils.spec
+++ b/python-ipython_genutils.spec
@@ -9,12 +9,13 @@ Summary: IPython vestigial utilities
Summary(pl.UTF-8): Pozostałe narzędzia IPythona
Name: python-%{module}
Version: 0.2.0
-Release: 11
+Release: 12
License: BSD
Group: Libraries/Python
#Source0Download: https://github.com/ipython/ipython_genutils/releases
# TODO: https://github.com/ipython/ipython_genutils/archive/%{version}/%{module}-%{version}.tar.gz
Source0: https://github.com/ipython/ipython_genutils/archive/%{version}.tar.gz
+Patch0: pynose.patch
# Source0-md5: 477e596a0e6e2f74ec08ec09687eeb6c
URL: https://github.com/ipython/ipython_genutils
%if %(locale -a | grep -q '^C\.utf8$'; echo $?)
@@ -31,7 +32,7 @@ BuildRequires: python-nose
BuildRequires: python3-modules >= 1:3.3
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-nose
+BuildRequires: python3-pynose
%endif
%endif
BuildRequires: rpm-pythonprov
@@ -71,6 +72,7 @@ najbliższym możliwym czasie, a ten pakiet przestanie istnieć.
%prep
%setup -q -n %{module}-%{version}
+%patch -P0 -p1
%build
%if %{with python2}
@@ -86,7 +88,7 @@ nosetests-%{py_ver} ipython_genutils
%py3_build
%if %{with tests}
-nosetests-%{py3_ver} ipython_genutils
+nosetests ipython_genutils
%endif
%endif
diff --git a/pynose.patch b/pynose.patch
new file mode 100644
index 0000000..618d925
--- /dev/null
+++ b/pynose.patch
@@ -0,0 +1,23 @@
+--- ipython_genutils-0.2.0/ipython_genutils/tests/test_path.py.orig 2017-03-13 18:55:37.000000000 +0100
++++ ipython_genutils-0.2.0/ipython_genutils/tests/test_path.py 2025-04-19 14:24:58.013524185 +0200
+@@ -47,17 +47,17 @@
+ return os.path.join(self.tempdir.name, *args)
+
+ def assert_inode_not_equal(self, a, b):
+- nt.assert_not_equals(os.stat(a).st_ino, os.stat(b).st_ino,
++ nt.assert_not_equal(os.stat(a).st_ino, os.stat(b).st_ino,
+ "%r and %r do reference the same indoes" %(a, b))
+
+ def assert_inode_equal(self, a, b):
+- nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino,
++ nt.assert_equal(os.stat(a).st_ino, os.stat(b).st_ino,
+ "%r and %r do not reference the same indoes" %(a, b))
+
+ def assert_content_equal(self, a, b):
+ with open(a) as a_f:
+ with open(b) as b_f:
+- nt.assert_equals(a_f.read(), b_f.read())
++ nt.assert_equal(a_f.read(), b_f.read())
+
+ @skip_win32
+ def test_link_successful(self):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-ipython_genutils.git/commitdiff/8fcfe9a90290cc8772f036ee4ae6b7a418f7985b
More information about the pld-cvs-commit
mailing list