Skip to content

Commit 38a341f

Browse files
committed
Update failing test to use is_exiting attr
1 parent e7ac3d3 commit 38a341f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/integration/test_keys.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,5 @@ def test_F5(self):
5252
assert show_help != self.aws_shell.show_help
5353

5454
def test_F10(self):
55-
# Exiting from the test in this mock test environment will throw:
56-
# IOError: [Errno 25] Inappropriate ioctl for device
57-
# In a non-mock test environment it would through a EOFError.
58-
# TODO: Probably better to mock the call to event.cli.set_exit().
59-
with self.assertRaises(IOError) as e:
60-
self.processor.feed_key(KeyPress(Keys.F10, ''))
55+
self.processor.feed_key(KeyPress(Keys.F10, ''))
56+
assert self.aws_shell.cli.is_exiting

0 commit comments

Comments
 (0)