/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_win32utils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-06-22 23:58:34 UTC
  • mfrom: (5314.1.2 missing_win32api_for_test)
  • Revision ID: pqm@pqm.ubuntu.com-20100622235834-85ugj691i2o5sxno
(gz) Skip test_wordpad on win32 when the win32api is not present. (Jason
 Spashett)

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
Win32RegistryFeature = _RequiredModuleFeature('_winreg')
55
55
CtypesFeature = _RequiredModuleFeature('ctypes')
56
56
Win32comShellFeature = _RequiredModuleFeature('win32com.shell')
 
57
Win32ApiFeature = _RequiredModuleFeature('win32api') 
57
58
 
58
59
 
59
60
# Tests
189
190
        # typical windows users should have wordpad in the system
190
191
        # but there is problem: its path has the format REG_EXPAND_SZ
191
192
        # so naive attempt to get the path is not working
 
193
        self.requireFeature(Win32ApiFeature)
192
194
        for a in ('wordpad', 'wordpad.exe'):
193
195
            p = get_app_path(a)
194
196
            d, b = os.path.split(p)