#1147586 ITP: python-refleak -- Find out what's still holding a reference to an object that should be dead.

#1147586#5
Date:
2026-09-13 11:46:36 UTC
From:
To:
  Package name    : python-refleak
  Version         : 0.2.2
  Upstream Contact: Eric Larson <larson.eric.d@gmail.com>
  URL             : https://github.com/mne-tools/refleak
  License         : BSD 3-Clause
  Programming Lang: Python
  Description     : Find out what's still holding a reference to an object that should be dead.

refleak.testing.assert_no_instances(cls) checks that no instances of cls i
remain alive after garbage collection, and for any that do,
reports a rendered referrer chain -- what's still holding on to it,
and (recursively) what's holding on to that -- so tracking down a reference/GC leak
(e.g. a lingering Qt widget, VTK actor, or GUI object in tests)
doesn't require manually poking at gc.get_referrers by hand.

refleak is a new dependency for python-mne.

This package is maintained by Debian Med Packaging Team.