New submission from Michael Foord: Printing call args produces non-deterministic results, making them more or less useless in doctests.
kwargs_string = ', '.join([ '%s=%r' % (key, value) for key, value in kwargs.items() ]) should be: kwargs_string = ', '.join([ '%s=%r' % (key, value) for key, value in sorted(kwargs.items()) ]) ---------- assignee: michael.foord keywords: easy messages: 216491 nosy: kushal.das, michael.foord priority: normal severity: normal stage: needs patch status: open title: Sort keyword arguments in mock _format_call_signature type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21256> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com