This tiny PR substitutes Python loops in the form of for x in range(N): ... by for _ in range(N): ... where applicable. The idea is indicating to the reader that a block (or statement, in list comprehensions) is just repeated N times, and that the loop counter is not used in the body, hence using the throwaway variable. This is already done quite often in the current tests (see e.g. $ git grep "for _ in range("). Another alternative would be using itertools.repeat (according to Python core developer Raymond Hettinger it's even faster), but that doesn't seem to be widespread in use and I'm not sure about a readability increase.
The only drawback I see is that whenever one wants to debug loop iterations, one would need to introduce a loop variable again. Reviewing this is basically a no-brainer, since tests would fail immediately if a a substitution has taken place on a loop where the variable is used.
Instances to replace were found by $ git grep "for.*in range(" and manually checked.