diff options
author | Clay Gerrard <clay.gerrard@gmail.com> | 2017-06-13 10:46:10 -0700 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2017-06-13 10:51:09 -0700 |
commit | 01f5a9f3af3a1630297a92dff0f998b4f0e97a49 (patch) | |
tree | e7d26c1641617ed8761cc5ac3d5d3bb59e7e941e /CONTRIBUTING.rst | |
parent | f18d070b0be3511ecb86c3299469024132561bc8 (diff) | |
download | python-swiftclient-01f5a9f3af3a1630297a92dff0f998b4f0e97a49.tar.gz |
Support pdb in tests better
Not really "better" so much as "at all" - the thing we do with the
capture stderr *everywhere* is probably brilliant - but absolutely not
strictly necessary for every MockHttpTest TestCase and comes with the
annoying overhead of trying to get into a debugger causes tests to hang
inexplicably and you can't even do debug prints in tests!?
Now if you add SWIFTCLIENT_DEBUG=1 to your nose -vsx command you can not
only jump into debugger, but if you're "in the know" you could even get
some stderr print debugging going on!
If you're not "in the know" when you try to pdb.set_trace() the tests
will blow-up for you because we monkeypatch pdb when not in
SWIFTCLIENT_DEBUG mode, you're welcome.
Change-Id: I21298bfd39fe386b5ea19e3a6f4408d8a0459c92
Diffstat (limited to 'CONTRIBUTING.rst')
0 files changed, 0 insertions, 0 deletions