]> granicus.if.org Git - python/commit
bpo-31217: Fix regrtest -R for small integer (#3260) (#3261)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Sep 2017 13:04:47 +0000 (15:04 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 13:04:47 +0000 (15:04 +0200)
commit98c849a2f32f6727239b4cce38b8f0ff8adeef22
tree4d9015d7c54ade267819b6726a41d342c40ba09e
parent60f3f1fb5cbf5354c3081138be806c56cb04153f
bpo-31217: Fix regrtest -R for small integer (#3260) (#3261)

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 6c2feabc5dac2f3049b15134669e9ad5af573193)
Lib/test/libregrtest/refleak.py