Explicitly order keyword arguments in SpyCall.__repr__.
Review Request #11913 — Created Jan. 9, 2022 and submitted — Latest diff uploaded
SpyCall.__repr__
embedded itskwargs
dictionary in the resulting
string, but this led to random comparison problems in unit tests on
Python 2.7 and earlier 3.x.This problem was already solved in the unit test assertion helpers. The
ordering function has now been moved intokgb.utils
and is called in
SpyCall.__repr__
.
Unit tests pass on all supported versions of Python.