This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients matrixise, vstinner, xcombelle
Date 2016-07-20.11:05:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It would be nice to have unit tests and docs :-)

For unit test, you can use a script like:
def func():
    return 1

__ltrace__ = True

Run the script with, and check stdout.

To skip the test if Python is compiled in released mode, you can use:
# Were we compiled --with-pydebug or with #define Py_DEBUG?
Py_DEBUG = hasattr(sys, 'gettotalrefcount')

@unittest.skipUnless(Py_DEBUG, 'need Py_DEBUG')
Date User Action Args
2016-07-20 11:05:56vstinnersetrecipients: + vstinner, matrixise, xcombelle
2016-07-20 11:05:56vstinnersetmessageid: <>
2016-07-20 11:05:56vstinnerlinkissue25571 messages
2016-07-20 11:05:55vstinnercreate