commit | 6aa0fa356145818b7f51842149408f66d7d03a31 | [log] [tgz] |
---|---|---|
author | likui <likui@yovole.com> | Mon Nov 02 12:54:19 2020 +0800 |
committer | likui <likui@yovole.com> | Wed Nov 04 10:37:03 2020 +0800 |
tree | dc6a36fbb75cf31dae328011866e1fb7775df32f | |
parent | 181ae6521649bd865c2ee7c4e87690aab29567e8 [diff] |
Replace assertItemsEqual with assertEqual assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277 Change-Id: If9ed6624afb277f1d09e5c5a2b7073de85d467d4