mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #24857: Comparing call_args to a long sequence now correctly returns a
boolean result instead of raising an exception. Patch by A Kaptur.
This commit is contained in:
parent
d1a98587fe
commit
3fc536f1c9
3 changed files with 9 additions and 2 deletions
|
@ -291,6 +291,9 @@ class MockTest(unittest.TestCase):
|
|||
self.assertEqual(mock.call_args,
|
||||
((sentinel.Arg,), {"kw": sentinel.Kwarg}))
|
||||
|
||||
# Comparing call_args to a long sequence should not raise
|
||||
# an exception. See issue 24857.
|
||||
self.assertFalse(mock.call_args == "a long sequence")
|
||||
|
||||
def test_assert_called_with(self):
|
||||
mock = Mock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue