|
|
532643c |
From 27279feaed2cd253b50683db9239d829de48f64a Mon Sep 17 00:00:00 2001
|
|
|
532643c |
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
|
532643c |
Date: Mon, 29 Nov 2021 12:27:00 +0100
|
|
|
532643c |
Subject: [PATCH] Don't use deprecated unittest aliases trough nose, they are
|
|
|
532643c |
removed in Python 3.11
|
|
|
532643c |
|
|
|
532643c |
---
|
|
|
532643c |
ipython_genutils/tests/test_path.py | 6 +++---
|
|
|
532643c |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
532643c |
|
|
|
532643c |
diff --git a/ipython_genutils/tests/test_path.py b/ipython_genutils/tests/test_path.py
|
|
|
532643c |
index 04ca85d..4a9e75d 100644
|
|
|
532643c |
--- a/ipython_genutils/tests/test_path.py
|
|
|
532643c |
+++ b/ipython_genutils/tests/test_path.py
|
|
|
532643c |
@@ -47,17 +47,17 @@ def dst(self, *args):
|
|
|
532643c |
return os.path.join(self.tempdir.name, *args)
|
|
|
532643c |
|
|
|
532643c |
def assert_inode_not_equal(self, a, b):
|
|
|
532643c |
- nt.assert_not_equals(os.stat(a).st_ino, os.stat(b).st_ino,
|
|
|
532643c |
+ nt.assert_not_equal(os.stat(a).st_ino, os.stat(b).st_ino,
|
|
|
532643c |
"%r and %r do reference the same indoes" %(a, b))
|
|
|
532643c |
|
|
|
532643c |
def assert_inode_equal(self, a, b):
|
|
|
532643c |
- nt.assert_equals(os.stat(a).st_ino, os.stat(b).st_ino,
|
|
|
532643c |
+ nt.assert_equal(os.stat(a).st_ino, os.stat(b).st_ino,
|
|
|
532643c |
"%r and %r do not reference the same indoes" %(a, b))
|
|
|
532643c |
|
|
|
532643c |
def assert_content_equal(self, a, b):
|
|
|
532643c |
with open(a) as a_f:
|
|
|
532643c |
with open(b) as b_f:
|
|
|
532643c |
- nt.assert_equals(a_f.read(), b_f.read())
|
|
|
532643c |
+ nt.assert_equal(a_f.read(), b_f.read())
|
|
|
532643c |
|
|
|
532643c |
@skip_win32
|
|
|
532643c |
def test_link_successful(self):
|