Rev 4798: have-ctypes was accepted. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted

John Arbash Meinel john at arbash-meinel.com
Mon Nov 16 19:56:29 GMT 2009


At http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-accepted

------------------------------------------------------------
revno: 4798 [merge]
revision-id: john at arbash-meinel.com-20091116195624-65sf2o5pwfa9djvk
parent: pqm at pqm.ubuntu.com-20091116043430-fuifwnnqopltu6kx
parent: john at arbash-meinel.com-20091108004825-7m8qpfscrp13k7bu
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-win32-accepted
timestamp: Mon 2009-11-16 13:56:24 -0600
message:
  have-ctypes was accepted.
modified:
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2009-11-04 11:59:35 +0000
+++ b/bzrlib/tests/__init__.py	2009-11-16 19:56:24 +0000
@@ -4321,7 +4321,9 @@
             # Windows doesn't have os.kill, and we catch the SIGBREAK signal.
             # We trigger SIGBREAK via a Console api so we need ctypes to
             # access the function
-            if not have_ctypes:
+            try:
+                import ctypes
+            except OSError:
                 return False
         return True
 



More information about the bazaar-commits mailing list