New GitHub issue #118605 from Eclips4:<br>

<hr>

<pre>
# Bug report

### Bug description:

```python
 ./python -m test -R 3:3 test_bdb
Using random seed: 2592309756
0:00:00 load avg: 25.13 Run 1 test sequentially
0:00:00 load avg: 25.13 [1/1] test_bdb
beginning 6 repetitions. Showing number of leaks (. for 0 or less, X for 10 or more)
123:456
XX2 222
test_bdb leaked [1, 1, 1] references, sum=3
test_bdb leaked [2, 2, 2] memory blocks, sum=6
test_bdb failed (reference leak)

== Tests result: FAILURE ==

1 test failed:
    test_bdb

Total duration: 845 ms
Total tests: run=35
Total test files: run=1/1 failed=1
Result: FAILURE
```

### CPython versions tested on:

CPython main branch

### Operating systems tested on:

Linux
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/118605">View on GitHub</a>
<p>Labels: type-bug, tests</p>
<p>Assignee: </p>