Fix an ordering issue testing DatabaseState.iter_indexes().

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

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.

Summary ID
Fix an ordering issue testing DatabaseState.iter_indexes().
`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.
2495fb0fa817ed7ec06d91e43a97408e17456356
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (463aa3e)