]> git.ipfire.org Git - thirdparty/patchwork.git/commit
tests: Don't use exceptions for flow control
authorStephen Finucane <stephen.finucane@intel.com>
Sat, 7 Nov 2015 01:28:56 +0000 (01:28 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Sat, 7 Nov 2015 04:13:29 +0000 (04:13 +0000)
commit984cba39a52a0af721c8789370c0f1674464a432
tree159b7e0560c4ff47a9e72e7ed8073b964d4f058a
parent5cdbbbca15095ed7e2c1bfc527c709997c2e7f48
tests: Don't use exceptions for flow control

Using exceptions for flow control is bad. Be consistent and instead
use proper functions to check for version support. This also allows
the use of tools to automatically identify feature flags when
removing support for Django versions in the future.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/tests/browser.py