diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2016-06-11 23:07:42 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2016-06-11 23:07:42 +1200 |
commit | 7b86560dedaad88baaab87bd5c1be7719ec1810e (patch) | |
tree | 224e00917aaee4204e1d827d85c50a4f98a97e55 /test/netlib | |
parent | 8489c01ac81479e48c2ff2c3ab308e07e3d2bacd (diff) | |
download | mitmproxy-7b86560dedaad88baaab87bd5c1be7719ec1810e.tar.gz mitmproxy-7b86560dedaad88baaab87bd5c1be7719ec1810e.tar.bz2 mitmproxy-7b86560dedaad88baaab87bd5c1be7719ec1810e.zip |
debug: On SIGUSR2, we dump tracebacks for all threads to screen
Diffstat (limited to 'test/netlib')
-rw-r--r-- | test/netlib/test_debug.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/netlib/test_debug.py b/test/netlib/test_debug.py index c39d3752..b9315c7f 100644 --- a/test/netlib/test_debug.py +++ b/test/netlib/test_debug.py @@ -10,5 +10,11 @@ def test_dump_info(): assert cs.getvalue() +def test_dump_stacks(): + cs = StringIO() + debug.dump_stacks(None, None, file=cs) + assert cs.getvalue() + + def test_sysinfo(): assert debug.sysinfo() |