test: Make exceptions compatible with Python 3
authorMartin Pitt <martin.pitt@ubuntu.com>
Tue, 11 Mar 2014 16:39:19 +0000 (17:39 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 12 Mar 2014 00:32:46 +0000 (19:32 -0500)
commit0393a41e3589380b701dc73fc15fa90a24d7e55a
treec8d5fae96cf6bc24271937cffd8489c298758431
parent0c1fcd2b50908bda607fce70c796033e33832b11
test: Make exceptions compatible with Python 3

Use "except Type as var" syntax to work with both Python >= 2.6
and Python 3.
17 files changed:
test/activate-context
test/deactivate-context
test/disable-call-forwarding
test/set-call-forwarding
test/set-context-property
test/test-advice-of-charge
test/test-call-barring
test/test-call-forwarding
test/test-call-settings
test/test-cbs
test/test-gnss
test/test-network-registration
test/test-sms
test/test-ss
test/test-ss-control-cb
test/test-ss-control-cs
test/test-stk-menu