mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-05-22 23:53:03 +08:00
- Add basethread.BaseThread that all threads outside of test suites should use - Add a signal handler to mitmproxy, mitmdump and mitmweb that dumps resource information to screen when SIGUSR1 is received. - Improve thread naming throughout to make thread dumps understandable
15 lines
296 B
Python
15 lines
296 B
Python
from __future__ import (absolute_import, print_function, division)
|
|
from six.moves import cStringIO as StringIO
|
|
|
|
from netlib import debug
|
|
|
|
|
|
def test_dump_info():
|
|
cs = StringIO()
|
|
debug.dump_info(None, None, file=cs)
|
|
assert cs.getvalue()
|
|
|
|
|
|
def test_sysinfo():
|
|
assert debug.sysinfo()
|