BPO | [37125](https://bugs.python.org/issue37125) --- | :--- Nosy | @rhettinger, @mdickinson, @serhiy-storchaka, @pablogsal *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.* Show more details GitHub fields: ```python assignee = None closed_at = created_at = labels = ['interpreter-core', '3.8', 'tests'] title = 'math.comb is leaking references' updated_at = user = 'https://github.com/pablogsal' ``` bugs.python.org fields: ```python activity = actor = 'rhettinger' assignee = 'none' closed = True closed_date = closer = 'pablogsal' components = ['Interpreter Core', 'Tests'] creation = creator = 'pablogsal' dependencies = [] files = [] hgrepos = [] issue_num = 37125 keywords = [] message_count = 4.0 messages = ['344185', '344187', '344214', '344220'] nosy_count = 4.0 nosy_names = ['rhettinger', 'mark.dickinson', 'serhiy.storchaka', 'pablogsal'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = None url = 'https://bugs.python.org/issue37125' versions = ['Python 3.8'] ```
Activity
pablogsal commentedon Jun 1, 2019
./python Lib/test/bisect_cmd.py test_math -R 2:2
...
WARNING: Running tests with --huntrleaks/-R and less than 3 warmup repetitions can give false positives!
Run tests sequentially
0:00:00 load avg: 1.32 [1/1] test_math
beginning 4 repetitions
1234
....
test_math leaked [12352, 12352] references, sum=24704
test_math leaked [1, 1] memory blocks, sum=2
test_math failed
== Tests result: FAILURE ==
1 test failed:
test_math
Total duration: 663 ms
Tests result: FAILURE
ran 1 tests/2
exit 2
Tests failed: continuing with this subtest
Tests (1):
Bisection completed in 13 iterations and 0:00:11
pablogsal commentedon Jun 1, 2019
It seems that #13725 fixes the leak:
❯ ./python -m test test_math -R :
Run tests sequentially
0:00:00 load avg: 1.55 [1/1] test_math
beginning 9 repetitions
123456789
.........
== Tests result: SUCCESS ==
1 test OK.
Total duration: 26 sec 283 ms
Tests result: SUCCESS
pablogsal commentedon Jun 1, 2019
Fixed by #13725
rhettinger commentedon Jun 1, 2019
Please file this in the tracker issue so that the discussions don't sprawl. Thx.