Some progress.
I'm now able to reproduce the issue with attached test_functools2.py (103 lines, a single test method):
$ cp (...)test_functools2.py Lib/test/
$ ./configure -C --with-pydebug CFLAGS=-O0
$ make
$ ./python -m test -F -j5 -R 3:3 test_functools2
(...)
0:00:02 load avg: 0.95 [ 19/1] test_functools failed
beginning 6 repetitions
123456
......
test_functools leaked [1, 1, 1] memory blocks, sum=3
(...)
Tests result: FAILURE
I disabled the C accelerator _functools.
I'm now trying to disable the C accelerator of abc, but I had a small issue: bpo-36565. |