tests/hghave.py
changeset 43470 32ac4d0b4102
parent 43455 6792da448437
child 43699 21e05aabef8c
equal deleted inserted replaced
43469:5f2a8dabb0d8 43470:32ac4d0b4102
   998     blackcmd = 'black --version'
   998     blackcmd = 'black --version'
   999     version_regex = b'black, version ([0-9a-b.]+)'
   999     version_regex = b'black, version ([0-9a-b.]+)'
  1000     version = matchoutput(blackcmd, version_regex)
  1000     version = matchoutput(blackcmd, version_regex)
  1001     sv = distutils.version.StrictVersion
  1001     sv = distutils.version.StrictVersion
  1002     return version and sv(_strpath(version.group(1))) >= sv('19.10b0')
  1002     return version and sv(_strpath(version.group(1))) >= sv('19.10b0')
       
  1003 
       
  1004 
       
  1005 @check('pytype', 'the pytype type checker')
       
  1006 def has_pytype():
       
  1007     pytypecmd = 'pytype --version'
       
  1008     version = matchoutput(pytypecmd, b'[0-9a-b.]+')
       
  1009     sv = distutils.version.StrictVersion
       
  1010     return version and sv(_strpath(version.group(0))) >= sv('2019.10.17')