mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue 10242: unittest.assertItemsEqual makes too many assumptions.
This commit is contained in:
parent
db213a297d
commit
6e165b30de
5 changed files with 60 additions and 39 deletions
|
@ -229,8 +229,8 @@ class TestLongMessage(unittest.TestCase):
|
|||
"^Missing: 'key'$",
|
||||
"^Missing: 'key' : oops$"])
|
||||
|
||||
def testAssertItemsEqual(self):
|
||||
self.assertMessages('assertItemsEqual', ([], [None]),
|
||||
def testassertCountEqual(self):
|
||||
self.assertMessages('assertCountEqual', ([], [None]),
|
||||
[r"\[None\]$", "^oops$",
|
||||
r"\[None\]$",
|
||||
r"\[None\] : oops$"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue