Rev 4790: Simple test suite fix for a variable that didn't exist. in http://bazaar.launchpad.net/~jameinel/bzr/2.1.0b4-win32-have-ctypes

John Arbash Meinel john at arbash-meinel.com
Sun Nov 8 00:48:33 GMT 2009


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

------------------------------------------------------------
revno: 4790
revision-id: john at arbash-meinel.com-20091108004825-7m8qpfscrp13k7bu
parent: pqm at pqm.ubuntu.com-20091106084512-t5ll6xywcd1bycfe
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.1.0b4-win32-have-ctypes
timestamp: Sat 2009-11-07 18:48:25 -0600
message:
  Simple test suite fix for a variable that didn't exist.
-------------- next part --------------
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2009-11-01 05:52:16 +0000
+++ b/bzrlib/tests/__init__.py	2009-11-08 00:48:25 +0000
@@ -4309,7 +4309,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