commit | 224e7246e8ddd8f06ee6f4a4bb329073cd6ff346 | [log] [tgz] |
---|---|---|
author | wu.shiming <wushiming@yovole.com> | Tue Oct 13 09:36:19 2020 +0800 |
committer | wu.shiming <wushiming@yovole.com> | Tue Oct 13 09:37:03 2020 +0800 |
tree | 7e865e753a29892ece61703d09ef4884b2869db6 | |
parent | 2356ff674133127d2cd9dfb5c59e866b347f223b [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: I1a4a9c9a5497c96fe7956d045edc574f81cc5860