summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-05 11:49:08 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-05 11:49:51 +0200
commitd01ba0dfc653ab48b4b2b95eb6ca5671901737c8 (patch)
tree54b8d2b37b886ce2bd8286e31678619376b0f4bf /dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch
parentapp-dicts/myspell-de_1901: Remove old (diff)
downloadgentoo-d01ba0dfc653ab48b4b2b95eb6ca5671901737c8.tar.gz
gentoo-d01ba0dfc653ab48b4b2b95eb6ca5671901737c8.tar.bz2
gentoo-d01ba0dfc653ab48b4b2b95eb6ca5671901737c8.zip
dev-python/testtools: Eliminate unittest2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch')
-rw-r--r--dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch b/dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch
new file mode 100644
index 00000000000..e46bf29c8bf
--- /dev/null
+++ b/dev-python/testtools/files/testtools-2.4.0-assertitemsequal.patch
@@ -0,0 +1,27 @@
+From 2ead7c11a54b0860e02992212e302c4a7bd26c35 Mon Sep 17 00:00:00 2001
+From: Matthew Treinish <mtreinish@kortar.org>
+Date: Wed, 8 Jul 2020 14:22:24 -0400
+Subject: [PATCH] Update testtools/testcase.py
+
+Co-authored-by: Thomas Grainger <tagrain@gmail.com>
+---
+ testtools/testcase.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+Rebased for 2.4.0 by Michał Górny (eliminating intermediate commits).
+
+diff --git a/testtools/testcase.py b/testtools/testcase.py
+index bff5be2..22e9143 100644
+--- a/testtools/testcase.py
++++ b/testtools/testcase.py
+@@ -501,6 +501,7 @@ class TestCase(unittest.TestCase):
+ if mismatch_error is not None:
+ raise mismatch_error
+
++ assertItemsEqual = unittest.TestCase.assertCountEqual
+ def addDetailUniqueName(self, name, content_object):
+ """Add a detail to the test, but ensure it's name is unique.
+
+--
+2.32.0
+