~sidnei/zope3/ztk-1.0a1

« back to all changes in this revision

Viewing changes to src/zope/testing/testrunner/testrunner-leaks-err.txt

  • Committer: Thomas Hervé
  • Date: 2009-09-21 06:45:37 UTC
  • mfrom: (7.1.2 newer-zope-testing)
  • Revision ID: thomas@canonical.com-20090921064537-zcfyuv32hxj9eah0
Merge newer-zope-testing [a=sidnei] [f=429702] [r=therve,free.ekayanaka]

Update zope.testing to 3.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Debugging Memory Leaks without a debug build of Python 
 
2
======================================================
 
3
 
 
4
To use the --report-refcounts (-r) to detect or debug memory leaks,
 
5
you must have a debug build of Python. Without a debug build, you will
 
6
get an error message:
 
7
 
 
8
    >>> import os.path, sys
 
9
    >>> directory_with_tests = os.path.join(this_directory, 'testrunner-ex')
 
10
    >>> defaults = [
 
11
    ...     '--path', directory_with_tests,
 
12
    ...     '--tests-pattern', '^sampletestsf?$',
 
13
    ...     ]
 
14
 
 
15
    >>> from zope.testing import testrunner
 
16
    
 
17
    >>> sys.argv = 'test -r -N6'.split()
 
18
    >>> _ = testrunner.run_internal(defaults)
 
19
            The Python you are running was not configured
 
20
            with --with-pydebug. This is required to use
 
21
            the --report-refcounts option.
 
22
    <BLANKLINE>