Fix an ordering issue testing DatabaseState.iter_indexes().

Review Request #10597 — Created June 18, 2019 and submitted — Latest diff uploaded

Information

Django Evolution
master

Reviewers

DatabaseState.iter_indexes() iterates in dictionary sort order, but we
were comparing in a specific order, breaking some versions of Python (or
when running on different interpreters/systems). We now compare the
results using a set, which also requires being able to hash
IndexState instances.

Unit tests pass.

Commits

Files

    Loading...