Message270863
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')
--- |
|
Date |
User |
Action |
Args |
2016-07-20 11:05:56 | vstinner | set | recipients:
+ vstinner, matrixise, xcombelle |
2016-07-20 11:05:56 | vstinner | set | messageid: <1469012756.18.0.404952773823.issue25571@psf.upfronthosting.co.za> |
2016-07-20 11:05:56 | vstinner | link | issue25571 messages |
2016-07-20 11:05:55 | vstinner | create | |
|