~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-12 10:44:12 UTC
  • mfrom: (6492.1.1 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20120312104412-vm46n41e9kr4xf27
(vila) Merge 2.5 branch (Vincent Ladeuil)

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':