summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/cfv/files/cfv-3.0.0-fix-removed-assertequal.patch')
-rw-r--r--app-arch/cfv/files/cfv-3.0.0-fix-removed-assertequal.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/app-arch/cfv/files/cfv-3.0.0-fix-removed-assertequal.patch b/app-arch/cfv/files/cfv-3.0.0-fix-removed-assertequal.patch
new file mode 100644
index 000000000000..aa7820d03a92
--- /dev/null
+++ b/app-arch/cfv/files/cfv-3.0.0-fix-removed-assertequal.patch
@@ -0,0 +1,39 @@
+commit 5259bcbe3434c6974f7a65cc435dd0b4cfc3f864
+Author: Louis Sautier <sautier.louis@gmail.com>
+Date: Tue Nov 1 15:48:21 2022 +0100
+
+ tests: use assertEqual instead of assertEquals
+
+ The latter is deprecated and causes warnings when running tests.
+
+--- a/test/test_caching.py
++++ b/test/test_caching.py
+@@ -136,18 +136,18 @@ class RelPathKeyTest(RelTestCase):
+ self.mkfile('aAaA/Aaa2', '2')
+ self.mkfile('aAaA/AAa2', '3')
+
+- self.assertEquals(a1, cache.nocase_findfile(self.mkpath('aaAA/aaa1')))
++ self.assertEqual(a1, cache.nocase_findfile(self.mkpath('aaAA/aaa1')))
+ with self.assertRaises(IOError) as cm:
+ cache.nocase_findfile(self.mkpath('aaAb/aaa1'))
+- self.assertEquals(errno.ENOENT, cm.exception.errno)
++ self.assertEqual(errno.ENOENT, cm.exception.errno)
+
+ with self.assertRaises(IOError) as cm:
+ cache.nocase_findfile(self.mkpath('aaAA/aab1'))
+- self.assertEquals(errno.ENOENT, cm.exception.errno)
++ self.assertEqual(errno.ENOENT, cm.exception.errno)
+
+ with self.assertRaises(IOError) as cm:
+ cache.nocase_findfile(self.mkpath('aaAA/aaa2'))
+- self.assertEquals(errno.EEXIST, cm.exception.errno)
++ self.assertEqual(errno.EEXIST, cm.exception.errno)
+
+ def test_nocase_findfile_parent(self):
+ cache = FileInfoCache()
+@@ -159,4 +159,4 @@ class RelPathKeyTest(RelTestCase):
+ # one.
+ with self.assertRaises(IOError) as cm:
+ cache.nocase_findfile(self.mkpath('aaAA/aaa2'))
+- self.assertEquals(errno.EEXIST, cm.exception.errno)
++ self.assertEqual(errno.EEXIST, cm.exception.errno)