commit | c2abd827dba4828aa364d22e153221bf73e9ccbb | [log] [tgz] |
---|---|---|
author | gugug <gu.jin@99cloud.net> | Sun Jul 12 11:25:13 2020 +0800 |
committer | gugug <gu.jin@99cloud.net> | Sun Jul 12 11:25:13 2020 +0800 |
tree | bd4c9f5f3039222a9791e5f5c2f6074fa7d44676 | |
parent | aa17472706435248dd43ccfb5d1f380cbd18cfff [diff] |
Replace assertItemsEqual with assertCountEqual 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 assertCountEqual. [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: I2edc09748de1739c558040a8ae6a15373ad1a93b