From ca5d02df0620e9be393ea296904a24d5097a03de Mon Sep 17 00:00:00 2001 From: holger krekel Date: Thu, 5 Sep 2013 22:32:35 +0200 Subject: [PATCH] another way how bash reacts when no argcomplete is there? --- testing/test_parseopt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/test_parseopt.py b/testing/test_parseopt.py index e80de59ac..84c7d2757 100644 --- a/testing/test_parseopt.py +++ b/testing/test_parseopt.py @@ -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')