Remove deprecated pcre language

This commit is contained in:
Anthony Sottile 2020-01-05 13:58:44 -08:00
parent 3fadbefab9
commit 97e3371046
9 changed files with 18 additions and 139 deletions

View file

@ -154,23 +154,6 @@ exit_cmd = parse_shebang.normalize_cmd(('bash', '-c', 'exit $1', '--'))
max_length = len(' '.join(exit_cmd)) + 3
def test_xargs_negate():
ret, _ = xargs.xargs(
exit_cmd, ('1',), negate=True, _max_length=max_length,
)
assert ret == 0
ret, _ = xargs.xargs(
exit_cmd, ('1', '0'), negate=True, _max_length=max_length,
)
assert ret == 1
def test_xargs_negate_command_not_found():
ret, _ = xargs.xargs(('cmd-not-found',), ('1',), negate=True)
assert ret != 0
def test_xargs_retcode_normal():
ret, _ = xargs.xargs(exit_cmd, ('0',), _max_length=max_length)
assert ret == 0