python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / audio / beets / patches / bash-completion-always-print.patch
blob8a31fe22f72812ca98cd78cf107a8b0962f5d9d2
1 diff --git i/beets/ui/commands.py w/beets/ui/commands.py
2 index 3a337401..d08a6763 100755
3 --- i/beets/ui/commands.py
4 +++ w/beets/ui/commands.py
5 @@ -1759,21 +1759,6 @@ default_commands.append(config_cmd)
6 def print_completion(*args):
7 for line in completion_script(default_commands + plugins.commands()):
8 print_(line, end='')
9 - if not any(map(os.path.isfile, BASH_COMPLETION_PATHS)):
10 - log.warning('Warning: Unable to find the bash-completion package. '
11 - 'Command line completion might not work.')
14 -BASH_COMPLETION_PATHS = map(syspath, [
15 - '/etc/bash_completion',
16 - '/usr/share/bash-completion/bash_completion',
17 - '/usr/local/share/bash-completion/bash_completion',
18 - # SmartOS
19 - '/opt/local/share/bash-completion/bash_completion',
20 - # Homebrew (before bash-completion2)
21 - '/usr/local/etc/bash_completion',
22 -])
25 def completion_script(commands):
26 """Yield the full completion shell script as strings.
27 diff --git i/test/test_ui.py w/test/test_ui.py
28 index 9804b0a1..c3b53243 100644
29 --- i/test/test_ui.py
30 +++ w/test/test_ui.py
31 @@ -1229,12 +1229,7 @@ class CompletionTest(_common.TestCase, TestHelper):
32 stdout=subprocess.PIPE, env=env)
34 # Load bash_completion library.
35 - for path in commands.BASH_COMPLETION_PATHS:
36 - if os.path.exists(util.syspath(path)):
37 - bash_completion = path
38 - break
39 - else:
40 - self.skipTest('bash-completion script not found')
41 + self.skipTest('bash-completion script not found')
42 try:
43 with open(util.syspath(bash_completion), 'rb') as f:
44 tester.stdin.writelines(f)