another way how bash reacts when no argcomplete is there?

This commit is contained in:
holger krekel 2013-09-05 22:32:35 +02:00
parent c3fcf4d928
commit ca5d02df06
1 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,8 @@ def test_argcomplete(testdir, monkeypatch):
if result.ret == 255:
# argcomplete not found
pytest.skip("argcomplete not available")
elif not result.stdout.str():
pytest.skip("bash provided no output, argcomplete not available?")
else:
if py.std.sys.version_info < (2,7):
result.stdout.lines = result.stdout.lines[0].split('\x0b')