Blob Blame History Raw
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):