#4 Don't use deprecated unittest aliases trough nose, they are removed in Python 3.11
Merged 2 years ago by churchyard. Opened 2 years ago by churchyard.
rpms/ churchyard/python-ipython_genutils python3.11  into  rawhide

file added
+35
@@ -0,0 +1,35 @@ 

+ From 27279feaed2cd253b50683db9239d829de48f64a Mon Sep 17 00:00:00 2001

+ From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>

+ Date: Mon, 29 Nov 2021 12:27:00 +0100

+ Subject: [PATCH] Don't use deprecated unittest aliases trough nose, they are

+  removed in Python 3.11

+ 

+ ---

+  ipython_genutils/tests/test_path.py | 6 +++---

+  1 file changed, 3 insertions(+), 3 deletions(-)

+ 

+ diff --git a/ipython_genutils/tests/test_path.py b/ipython_genutils/tests/test_path.py

+ index 04ca85d..4a9e75d 100644

+ --- a/ipython_genutils/tests/test_path.py

+ +++ b/ipython_genutils/tests/test_path.py

+ @@ -47,17 +47,17 @@ def dst(self, *args):

+          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):

file modified
+4 -1
@@ -9,6 +9,9 @@ 

  URL:            https://github.com/ipython/%{srcname}

  Source0:        https://pypi.python.org/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz

  

+ # Don't use deprecated unittest aliases trough nose, they are removed in Python 3.11

+ Patch1:         %{url}/pull/19.patch

+ 

  BuildArch:      noarch

  

  %description
@@ -39,7 +42,7 @@ 

  

  

  %prep

- %setup -q -n %{srcname}-%{version}

+ %autosetup -p1 -n %{srcname}-%{version}

  

  

  %build

no initial comment

Looks good to me, feel free to ship it once CI is green.

Pull-Request has been merged by churchyard

2 years ago
Metadata