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 <1469012756.18.0.404952773823.issue25571@psf.upfronthosting.co.za>
In-reply-to
Content
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
func()
---

Run the script with test.support.assert_python_ok(), 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')
---
History
Date User Action Args
2016-07-20 11:05:56vstinnersetrecipients: + vstinner, matrixise, xcombelle
2016-07-20 11:05:56vstinnersetmessageid: <1469012756.18.0.404952773823.issue25571@psf.upfronthosting.co.za>
2016-07-20 11:05:56vstinnerlinkissue25571 messages
2016-07-20 11:05:55vstinnercreate