~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Vincent Ladeuil
  • Date: 2012-03-12 10:15:30 UTC
  • mfrom: (6437.23.23 2.5)
  • mto: This revision was merged to the branch mainline in revision 6493.
  • Revision ID: v.ladeuil+lp@free.fr-20120312101530-ab4ongciswezj5um
Merge 2.5 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2225
2225
        self.assertTrue(
2226
2226
            osutils.find_executable_on_path('THIS SHOULD NOT EXIST') is None)
2227
2227
        self.assertTrue(osutils.find_executable_on_path('file.txt') is None)
 
2228
        
 
2229
    def test_windows_app_path(self):
 
2230
        if sys.platform != 'win32':
 
2231
            raise tests.TestSkipped('test requires win32')
 
2232
        # Override PATH env var so that exe can only be found on App Path
 
2233
        self.overrideEnv('PATH', '')
 
2234
        # Internt Explorer is always registered in the App Path
 
2235
        self.assertTrue(osutils.find_executable_on_path('iexplore') is not None)
2228
2236
 
2229
2237
    def test_other(self):
2230
2238
        if sys.platform == 'win32':