[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread STINNER Victor
STINNER Victor added the comment: I reproduce the leak with attached test_zip.py by running: $ ./python -m test -R 3:3 test_zip_leak -j4 -m test.test_zip_leak.TestGC.test_permutations -m test.test_zip_leak.TestGC.test_zip The problem is that the builtin zip class keeps an internal tuple ali

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. I'll work on it this evening. If this is new, pairwise() is the most likely cause. -- assignee: -> rhettinger ___ Python tracker _

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can get a list of all tests with --list-cases and then run them in separate processes. -- ___ Python tracker ___ _

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread STINNER Victor
STINNER Victor added the comment: > nosy: + rhettinger, serhiy.storchaka I wanted to bisect this test before annoying too many people with this random issue. So far, I managed to simplified test_itertools to: def test_main(verbose=None): test_classes = ( TestBasicOps, Tes

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread STINNER Victor
STINNER Victor added the comment: Leak seen on AMD64 RHEL7 Refleaks 3.x: https://buildbot.python.org/all/#builders/562/builds/109 Recent itertools change, I have no idea if it's related: commit cc061d0e6fb2569efa91531686f75b89e94ec865 Author: Raymond Hettinger Date: Mon Nov 30 20:42:54 202

[issue42536] test_itertools leaks sometimes references

2020-12-02 Thread STINNER Victor
New submission from STINNER Victor : 12:07:06 vstinner@apu$ ./python -m test test_itertools -R 3:3 -F -j4 0:00:00 load avg: 0.44 Run tests in parallel using 4 child processes (...) 0:02:03 load avg: 4.24 [ 1] test_itertools passed (2 min 2 sec) -- running: test_itertools (2 min 3 sec), test_it