summaryrefslogtreecommitdiff
diff options
authorMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-05-17 11:44:26 +0200
committerMaciej Kisielewski <maciej.kisielewski@canonical.com>2019-05-21 14:08:50 +0200
commite6b0e12d172db6aa0224ccbdc09522bec284db74 (patch)
tree6fb8e67275ad1d352f3b3bfaf327c9a11a6f8556
parentbd8e52f7f09e7015034c0ce3b42b7aec471401e6 (diff)
hotkey_tests: remove return values from contextmanager
Signed-off-by: Maciej Kisielewski <maciej.kisielewski@canonical.com>
-rwxr-xr-xbin/hotkey_tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/hotkey_tests.py b/bin/hotkey_tests.py
index 8815aee4..556f0e58 100755
--- a/bin/hotkey_tests.py
+++ b/bin/hotkey_tests.py
@@ -412,21 +412,21 @@ class HotKeyTesting:
# all lines removed from before, so there's no state change
# of the stuff reported bevore hitting volume up, so let's fail
# the test
- return False
+ return
# we expect that the lines that changed are status information about
# the output devices. Percentage volume is in square brackets so let's
# search for those and see if they got higher
regex = re.compile(r'\[(\d*)%\]')
if len(before) != len(after):
# more of an assertion - the lines diff should match
- return False
+ return
for b, a in zip(before, after):
vol_b = regex.search(b).groups()
vol_a = regex.search(a).groups()
if vol_a and vol_b:
vc.before = int(vol_b[0])
vc.after = int(vol_a[0])
- return False
+ return
def check_terminal_hotkey(self):
# spawn a terminal window using ctrl+alt+t