[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

Robert Collins report at bugs.python.org
Sun Mar 13 22:34:57 EDT 2016


Robert Collins added the comment:

Can we just stop running the test suite directly?

python -m unittest test.test_traceback

should work fine and as quickly, ... I'd like to delete all the __main__ in the test suite as cruft TBH.

The patch would be ok if ugly, its a bit of a magic number there. What the test really should do is create a recursive function of some depth, and then introspect the result of calling the function at the bottom of that recursion.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25783>
_______________________________________


More information about the Python-bugs-list mailing list