Created on 2014-04-16 16:37 by michael.foord, last changed 2022-04-11 14:58 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| issue21256.patch | kushal.das, 2014-04-16 17:04 | Patch uploaded for the same. | review | |
| issue21256_v2.patch | kushal.das, 2014-04-22 03:30 | New patch with test and news entry. | review | |
| Messages (8) | |||
|---|---|---|---|
| msg216491 - (view) | Author: Michael Foord (michael.foord) * | Date: 2014-04-16 16:37 | |
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())
])
|
|||
| msg216501 - (view) | Author: Eric Snow (eric.snow) * | Date: 2014-04-16 16:57 | |
Ordered kwargs anyone? :) |
|||
| msg216504 - (view) | Author: Kushal Das (kushal.das) * | Date: 2014-04-16 17:04 | |
Patch uploaded for the same. |
|||
| msg216512 - (view) | Author: Michael Foord (michael.foord) * | Date: 2014-04-16 17:42 | |
Yes to ordered kwargs! I would very much like to be able to order the keyword args in the order they were passed in, information which is currently lost. |
|||
| msg216537 - (view) | Author: Michael Foord (michael.foord) * | Date: 2014-04-16 18:11 | |
Needs a test. |
|||
| msg216981 - (view) | Author: Kushal Das (kushal.das) * | Date: 2014-04-22 03:30 | |
New patch with test and news entry. |
|||
| msg216998 - (view) | Author: Michael Foord (michael.foord) * | Date: 2014-04-22 10:53 | |
I agree with Antoine's review comments. With those changes in place, ok to commit. |
|||
| msg220085 - (view) | Author: Roundup Robot (python-dev) | Date: 2014-06-09 08:16 | |
New changeset 8e05e15901a8 by Kushal Das in branch 'default': Closes #21256: Printout of keyword args in deterministic order in mock calls. http://hg.python.org/cpython/rev/8e05e15901a8 |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:58:02 | admin | set | github: 65455 |
| 2014-06-09 08:16:18 | python-dev | set | status: open -> closed nosy:
+ python-dev resolution: fixed |
| 2014-04-22 10:53:17 | michael.foord | set | messages: + msg216998 |
| 2014-04-22 03:30:20 | kushal.das | set | files:
+ issue21256_v2.patch messages: + msg216981 |
| 2014-04-16 18:11:54 | michael.foord | set | messages: + msg216537 |
| 2014-04-16 17:42:32 | michael.foord | set | messages: + msg216512 |
| 2014-04-16 17:04:23 | kushal.das | set | files:
+ issue21256.patch keywords: + patch messages: + msg216504 |
| 2014-04-16 16:57:30 | eric.snow | set | nosy:
+ eric.snow messages: + msg216501 |
| 2014-04-16 16:37:06 | michael.foord | create | |