diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-09 14:05:09 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-11 10:34:30 +0100 |
commit | 3795f4d6a69dc4ba5208f1d05b89e65bc11d8a10 (patch) | |
tree | 363978673f3e06a03bc2f4a3cb629dd5011cf40a /bitbake/lib/toaster/bldcontrol/tests.py | |
parent | a9d90f74050e2129171da09ca3427720887f67ee (diff) | |
download | poky-3795f4d6a69dc4ba5208f1d05b89e65bc11d8a10.tar.gz |
bitbake: bin, toaster: Fix print and exception syntax
This updates the print "" syntax to print() and fixes some exception
handling syntax such that its compatible with python v2 and v3.
(Bitbake rev: 58304fcce9727fd89564436771356c033ecd22a3)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/tests.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/tests.py b/bitbake/lib/toaster/bldcontrol/tests.py index f20cc7d4b1..32985c3280 100644 --- a/bitbake/lib/toaster/bldcontrol/tests.py +++ b/bitbake/lib/toaster/bldcontrol/tests.py | |||
@@ -53,7 +53,7 @@ class BEControllerTests(object): | |||
53 | # setting layers, skip any layer info | 53 | # setting layers, skip any layer info |
54 | bc.setLayers(BITBAKE_LAYER, POKY_LAYERS) | 54 | bc.setLayers(BITBAKE_LAYER, POKY_LAYERS) |
55 | except NotImplementedError: | 55 | except NotImplementedError: |
56 | print "Test skipped due to command not implemented yet" | 56 | print("Test skipped due to command not implemented yet") |
57 | return True | 57 | return True |
58 | # We are ok with the exception as we're handling the git already exists | 58 | # We are ok with the exception as we're handling the git already exists |
59 | except BuildSetupException: | 59 | except BuildSetupException: |
@@ -79,7 +79,7 @@ class BEControllerTests(object): | |||
79 | # setting layers, skip any layer info | 79 | # setting layers, skip any layer info |
80 | layerSet = bc.setLayers(BITBAKE_LAYER, POKY_LAYERS) | 80 | layerSet = bc.setLayers(BITBAKE_LAYER, POKY_LAYERS) |
81 | except NotImplementedError: | 81 | except NotImplementedError: |
82 | print "Test skipped due to command not implemented yet" | 82 | print("Test skipped due to command not implemented yet") |
83 | return True | 83 | return True |
84 | # We are ok with the exception as we're handling the git already exists | 84 | # We are ok with the exception as we're handling the git already exists |
85 | except BuildSetupException: | 85 | except BuildSetupException: |