~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-11-16 22:42:54 UTC
  • mfrom: (4797.3.21 2.1.0b4-win32-accepted)
  • Revision ID: pqm@pqm.ubuntu.com-20091116224254-fgspnq9xz29z662j
(jam) Lots of win32 test-suite fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4321
4321
            # Windows doesn't have os.kill, and we catch the SIGBREAK signal.
4322
4322
            # We trigger SIGBREAK via a Console api so we need ctypes to
4323
4323
            # access the function
4324
 
            if not have_ctypes:
 
4324
            try:
 
4325
                import ctypes
 
4326
            except OSError:
4325
4327
                return False
4326
4328
        return True
4327
4329