summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.rst
diff options
context:
space:
mode:
authorClay Gerrard <clay.gerrard@gmail.com>2017-06-13 10:46:10 -0700
committerClay Gerrard <clay.gerrard@gmail.com>2017-06-13 10:51:09 -0700
commit01f5a9f3af3a1630297a92dff0f998b4f0e97a49 (patch)
treee7d26c1641617ed8761cc5ac3d5d3bb59e7e941e /CONTRIBUTING.rst
parentf18d070b0be3511ecb86c3299469024132561bc8 (diff)
downloadpython-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