diff options
author | Wouter Bolsterlee <uws@xs4all.nl> | 2013-06-04 21:00:23 +0200 |
---|---|---|
committer | Wouter Bolsterlee <uws@xs4all.nl> | 2013-06-04 21:00:23 +0200 |
commit | 48b33d789222a07e7b463aca01a7e06f7b59bab8 (patch) | |
tree | a9254514799467d6455b0cf6f8e513283f46c50e /tests | |
parent | c7f74ae050299083854ab2b02297be1cb703b1f7 (diff) | |
download | happybase-48b33d789222a07e7b463aca01a7e06f7b59bab8.tar.gz |
Set debug log level when running tests as __main__
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_api.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py index 7fd66ff..9ecaabc 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -511,6 +511,7 @@ def test_pool_exhaustion(): if __name__ == '__main__': + import logging import sys # Dump stacktraces using 'kill -USR1', useful for debugging hanging @@ -523,6 +524,8 @@ if __name__ == '__main__': import signal faulthandler.register(signal.SIGUSR1) + logging.basicConfig(level=logging.DEBUG) + method_name = 'test_%s' % sys.argv[1] method = globals()[method_name] method() |