Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f8c82f9

Browse files
committed
Make the pcre check for a more compliant implementation
1 parent 82369fd commit f8c82f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testing/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
7575

7676

7777
def platform_supports_pcre():
78-
output = cmd_output('grep', '-P', 'setup', 'setup.py', retcode=None)
79-
return output[0] == 0 and 'from setuptools import setup' in output[1]
78+
output = cmd_output('grep', '-P', "name='pre", 'setup.py', retcode=None)
79+
return output[0] == 0 and "name='pre_commit'," in output[1]
8080

8181

8282
xfailif_no_pcre_support = pytest.mark.xfail(

0 commit comments

Comments
 (0)