# Bug report ### Bug description: ```python ./python -m test -R 3:3 test_datetime Using random seed: 2162639794 0:00:00 load avg: 88.54 Run 1 test sequentially in a single process 0:00:00 load avg: 88.54 [1/1] test_datetime beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more) 123:456 XXX 999 test_datetime leaked [9, 9, 9] references, sum=27 test_datetime leaked [3, 3, 3] memory blocks, sum=9 test_datetime failed (reference leak) == Tests result: FAILURE == 1 test failed: test_datetime Total duration: 21.9 sec Total tests: run=1,026 skipped=31 Total test files: run=1/1 failed=1 Result: FAILURE ``` ### CPython versions tested on: CPython main branch ### Operating systems tested on: macOS <!-- gh-linked-prs --> ### Linked PRs * gh-124607 <!-- /gh-linked-prs -->
Activity
[-]Leak in `test_datetime`[/-][+]Reference leak in `test_datetime`[/+]vstinner commentedon Sep 26, 2024
The failing test is
test_fromisoformat_fails_datetime:gh-124606: Fix reference leak in error path in `datetime_fromisoforma…
Eclips4 commentedon Sep 26, 2024
Fixed in #124607.