• 
      

    Explicitly order keyword arguments in SpyCall.__repr__.

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

    Information

    kgb
    master

    Reviewers

    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.

    Commits

    Files