]> granicus.if.org Git - python/commit
bpo-31217: Fix regrtest -R for small integer (#3260)
authorVictor Stinner <victor.stinner@gmail.com>
Fri, 1 Sep 2017 11:05:27 +0000 (13:05 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Sep 2017 11:05:27 +0000 (13:05 +0200)
commit6c2feabc5dac2f3049b15134669e9ad5af573193
tree641056b462afdc86801807caf7617acd17da13d4
parent122e88a8354e3f75aeaf6211232dac88ac296d54
bpo-31217: Fix regrtest -R for small integer (#3260)

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