Mercurial > cpython-lru_cache-weakref
diff Python/exceptions.c @ 37761:833f384ebd41 legacy-trunk
Add missing DECREF to PyErr_WriteUnraisable(). That function reports
exceptions that can't be raised any further, because (for instance) they
occur in __del__ methods. The coroutine tests in test_generators was
triggering this leak. Remove the leakers' testcase, and add a simpler
testcase that explicitly tests this leak to test_generators.
test_generators now no longer leaks at all, on my machine. This fix may also
solve other leaks, but my full refleakhunting run is still busy, so who
knows?
| author | Thomas Wouters <thomas@python.org> |
|---|---|
| date | Sat, 15 Apr 2006 23:27:28 +0000 |
| parents | 9b22d8b7bcaa |
| children | b5e7d5b3c442 |
