Yet another try to fix #1013

One again changed the string and file referenced to handle single quotes properly inside pcre greps.
This commit is contained in:
Bjørnar Myrheim 2019-04-29 21:45:56 +02:00 committed by GitHub
parent 5977b1125b
commit 00e048995c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,7 @@ xfailif_broken_deep_listdir = pytest.mark.xfail(
def platform_supports_pcre(): def platform_supports_pcre():
output = cmd_output(GREP, '-P', "Don't", 'CHANGELOG.md', retcode=None) output = cmd_output(GREP, '-P', "Don't", 'CHANGELOG.md', retcode=None)
return output[0] == 0 and "name='pre_commit'," in output[1] return output[0] == 0 and "Don't use readlink -f" in output[1]
xfailif_no_pcre_support = pytest.mark.xfail( xfailif_no_pcre_support = pytest.mark.xfail(