tests/hghave.py
changeset 45559 952f9d37002c
parent 45249 357d8415aa27
child 45957 89a2afe31e82
equal deleted inserted replaced
45558:10284ce3d5ed 45559:952f9d37002c
  1064     return matchoutput(
  1064     return matchoutput(
  1065         '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt'
  1065         '`rustup which --toolchain nightly rustfmt` --version', b'rustfmt'
  1066     )
  1066     )
  1067 
  1067 
  1068 
  1068 
       
  1069 @check("cargo", "cargo tool")
       
  1070 def has_cargo():
       
  1071     return matchoutput('`rustup which cargo` --version', b'cargo')
       
  1072 
       
  1073 
  1069 @check("lzma", "python lzma module")
  1074 @check("lzma", "python lzma module")
  1070 def has_lzma():
  1075 def has_lzma():
  1071     try:
  1076     try:
  1072         import _lzma
  1077         import _lzma
  1073 
  1078