~certify-web-dev/twisted/certify-staging

« back to all changes in this revision

Viewing changes to twisted/test/test_shortcut.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-01-02 19:38:17 UTC
  • mfrom: (2.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100102193817-jphp464ppwh7dulg
Tags: 9.0.0-1
* python-twisted: Depend on the python-twisted-* 9.0 packages.
* python-twisted: Depend on python-zope.interface only. Closes: #557781.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import os
7
7
if os.name == 'nt':
8
8
 
9
 
    from twisted.python import shortcut
 
9
    skipWindowsNopywin32 = None
 
10
    try:
 
11
        from twisted.python import shortcut
 
12
    except ImportError:
 
13
        skipWindowsNopywin32 = ("On windows, twisted.python.shortcut is not "
 
14
                                "available in the absence of win32com.")
10
15
    import os.path
11
16
    import sys
12
17
 
18
23
            self.assert_(os.path.exists(tempname))
19
24
            sc=shortcut.open(tempname)
20
25
            self.assert_(sc.GetPath(0)[0].endswith('test_shortcut.py'))
 
26
    ShortcutTest.skip = skipWindowsNopywin32