tests/hghave.py
changeset 45010 62bdb288c449
parent 44940 89f83e47e9c9
child 45084 3a6ec080b521
equal deleted inserted replaced
45009:7af5c1f5b3a0 45010:62bdb288c449
   679 
   679 
   680 
   680 
   681 @check("serve", "platform and python can manage 'hg serve -d'")
   681 @check("serve", "platform and python can manage 'hg serve -d'")
   682 def has_serve():
   682 def has_serve():
   683     return True
   683     return True
       
   684 
       
   685 
       
   686 @check("setprocname", "whether osutil.setprocname is available or not")
       
   687 def has_setprocname():
       
   688     try:
       
   689         from mercurial.utils import procutil
       
   690 
       
   691         procutil.setprocname
       
   692         return True
       
   693     except AttributeError:
       
   694         return False
   684 
   695 
   685 
   696 
   686 @check("test-repo", "running tests from repository")
   697 @check("test-repo", "running tests from repository")
   687 def has_test_repo():
   698 def has_test_repo():
   688     t = os.environ["TESTDIR"]
   699     t = os.environ["TESTDIR"]