◐ Shell
clean mode source ↗

Issue 35322: test_datetime leaks memory on Windows

test_datetime currently leaks memory blocks:

test_datetime leaked [3, 4, 3] memory blocks, sum=10

Attached patch should be added to Lib/test/ to only run a minimum set of tests which reproduce the bug.
C:\vstinner\python\master>python -m test -R 3:20 -u all test_datetime
Running Debug|x64 interpreter...
Run tests sequentially
0:00:00 [1/1] test_datetime
beginning 23 repetitions
12345678901234567890123
.......................
test_datetime leaked [1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] memory blocks, sum=21
test_datetime failed

== Tests result: FAILURE ==

1 test failed:
    test_datetime

Total duration: 562 ms
Tests result: FAILURE