Explicitly order keyword arguments in SpyCall.__repr__.

Review Request #11913 — Created Jan. 9, 2022 and submitted

chipx86
kgb
master
kgb

SpyCall.__repr__ embedded its kwargs 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 into kgb.utils and is called in
SpyCall.__repr__.

Unit tests pass on all supported versions of Python.

Summary
Explicitly order keyword arguments in SpyCall.__repr__.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (c663022)
Loading...