Author haypo
Recipients haypo, matrixise, 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:56hayposetrecipients: + haypo, matrixise, xcombelle
2016-07-20 11:05:56hayposetmessageid: <1469012756.18.0.404952773823.issue25571@psf.upfronthosting.co.za>
2016-07-20 11:05:56haypolinkissue25571 messages
2016-07-20 11:05:55haypocreate