[3.6] bpo-31217: Fix regrtest -R for small integer (#3260) by vstinner · Pull Request #3261 · python/cpython

@vstinner @pitrou

Use a pool of integer objects toprevent false alarm when checking for
memory block leaks. Fill the pool with values in -1000..1000 which
are the most common (reference, memory block, file descriptor)
differences.

Co-Authored-By: Antoine Pitrou <pitrou@free.fr>
(cherry picked from commit 6c2feab)