Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
call objects inherit from tuple and here the reported argument is a dict with 3 items returning len of 3. I am closing this as part of triaging since there is no additional information from @snakevil on reproducing this. Feel free to reopen this if there is more information on reproducing the issue. ./python.exe Python 3.9.0a0 (heads/master:cb65202520, Jun 6 2019, 11:15:04) [Clang 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from unittest.mock import call >>> c = call('solution', 'foo', {'__spots__': {}, '__event__': None, >>> '__solution__': None}) >>> len(c.args[2]) 3 >>> len(c) 3 >>> c.args ('solution', 'foo', {'__spots__': {}, '__event__': None, '__solution__': None}) >>> c.kwargs {} ---------- resolution: -> works for me stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32644> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com