Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82369fd commit f8c82f9Copy full SHA for f8c82f9
1 file changed
testing/util.py
@@ -75,8 +75,8 @@ def cmd_output_mocked_pre_commit_home(*args, **kwargs):
75
76
77
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]
+ output = cmd_output('grep', '-P', "name='pre", 'setup.py', retcode=None)
+ return output[0] == 0 and "name='pre_commit'," in output[1]
80
81
82
xfailif_no_pcre_support = pytest.mark.xfail(
0 commit comments