Author: Armin Rigo <[email protected]>
Branch:
Changeset: r88161:8430d9ee0092
Date: 2016-11-06 19:41 +0100
http://bitbucket.org/pypy/pypy/changeset/8430d9ee0092/
Log: Add a test for 2e0882973ed6
diff --git a/pypy/module/_rawffi/alt/test/test_funcptr.py
b/pypy/module/_rawffi/alt/test/test_funcptr.py
--- a/pypy/module/_rawffi/alt/test/test_funcptr.py
+++ b/pypy/module/_rawffi/alt/test/test_funcptr.py
@@ -651,3 +651,13 @@
A = _rawffi.Array('i')
a = A(1, autofree=True)
a[0] = libfoo # should cast libfoo to int/long automatically
+
+ def test_windll_as_integer(self):
+ if not self.iswin32:
+ skip("windows specific")
+ import _rawffi
+ from _rawffi.alt import WinDLL
+ libm = WinDLL(self.libm_name)
+ A = _rawffi.Array('i')
+ a = A(1, autofree=True)
+ a[0] = libm # should cast libm to int/long automatically
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit