[PATCH 05 of 16 eac] [py3] Use assertCountEqual instead of gone assertItemsEqual

Denis Laxalde denis.laxalde at logilab.fr
Tue Oct 1 12:36:31 CEST 2019


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1569919594 -7200
#      Tue Oct 01 10:46:34 2019 +0200
# Node ID db5616fe9733d2250233ea7e3fdd8bb7f5916055
# Parent  9df1fd6261a8d22b4ebc76ed51f0957a5038fcc2
# Available At http://hg.logilab.org/review/cubes/eac
#              hg pull http://hg.logilab.org/review/cubes/eac -r db5616fe9733
[py3] Use assertCountEqual instead of gone assertItemsEqual

diff --git a/test/test_dataimport.py b/test/test_dataimport.py
index 1f5b37e..74d98e5 100644
--- a/test/test_dataimport.py
+++ b/test/test_dataimport.py
@@ -360,7 +360,7 @@ class EACXMLParserTC(unittest.TestCase):
         visited = set([])
         for x in importer._visited.values():
             visited.update(x)
-        self.assertItemsEqual(visited, [x.extid for x in expected])
+        self.assertCountEqual(visited, [x.extid for x in expected])
         # Gather not-visited tag by name and group source lines.
         not_visited = {}
         for tagname, sourceline in importer.not_visited():



More information about the saem-devel mailing list