mirror of
https://github.com/beetbox/beets.git
synced 2026-01-15 04:34:23 +01:00
skip completion test if script not found
This commit is contained in:
parent
ab8d008049
commit
fc8325753c
1 changed files with 5 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue