Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1065:37a7857b50e1
Date: 2012-11-25 00:30 +0100
http://bitbucket.org/cffi/cffi/changeset/37a7857b50e1/

Log:    Add the .DLL after KERNEL32.

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -2491,7 +2491,7 @@
     if sys.platform != "win32":
         py.test.skip("GetLastError(): only for Windows")
     #
-    lib = find_and_load_library('KERNEL32')
+    lib = find_and_load_library('KERNEL32.DLL')
     BInt = new_primitive_type("int")
     BVoid = new_void_type()
     BFunc1 = new_function_type((BInt,), BVoid, False)
diff --git a/testing/test_function.py b/testing/test_function.py
--- a/testing/test_function.py
+++ b/testing/test_function.py
@@ -85,7 +85,7 @@
             py.test.skip("ctypes complains on wrong calling conv")
         ffi = FFI(backend=self.Backend())
         ffi.cdef("long TlsAlloc(void); int TlsFree(long);")
-        lib = ffi.dlopen('KERNEL32')
+        lib = ffi.dlopen('KERNEL32.DLL')
         x = lib.TlsAlloc()
         assert x != 0
         y = lib.TlsFree(x)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to