/usr/share/pyshared/zope/testrunner/testrunner-leaks-err.txt is in python-zope.testrunner 4.0.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | Debugging Memory Leaks without a debug build of Python
======================================================
To use the --report-refcounts (-r) to detect or debug memory leaks,
you must have a debug build of Python. Without a debug build, you will
get an error message:
>>> import os.path, sys
>>> directory_with_tests = os.path.join(this_directory, 'testrunner-ex')
>>> defaults = [
... '--path', directory_with_tests,
... '--tests-pattern', '^sampletestsf?$',
... ]
>>> from zope import testrunner
>>> sys.argv = 'test -r -N6'.split()
>>> _ = testrunner.run_internal(defaults)
The Python you are running was not configured
with --with-pydebug. This is required to use
the --report-refcounts option.
<BLANKLINE>
|