From fc8325753c64d244a29fb4ba5928837d810ef0eb Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 7 Mar 2014 14:46:09 -0800 Subject: [PATCH] skip completion test if script not found --- test/test_ui.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_ui.py b/test/test_ui.py index 1f587aef6..7bfe27f7a 100644 --- a/test/test_ui.py +++ b/test/test_ui.py @@ -877,8 +877,11 @@ class CompletionTest(_common.TestCase): stdout=subprocess.PIPE) # Load bash_completion - with open(bash_completion, 'r') as bash_completion: - tester.stdin.writelines(bash_completion) + try: + with open(bash_completion, 'r') as bash_completion: + tester.stdin.writelines(bash_completion) + except IOError: + self.skipTest('bash-completion script not found') # Load complection script self.io.install()