Author: Armin Rigo <[email protected]>
Branch: win32-ownlib
Changeset: r1638:6453fd3ed4b3
Date: 2015-01-19 21:02 +0100
http://bitbucket.org/cffi/cffi/changeset/6453fd3ed4b3/
Log: Re-skip some errno tests on Win32, where errno is a joke
diff --git a/testing/test_ownlib.py b/testing/test_ownlib.py
--- a/testing/test_ownlib.py
+++ b/testing/test_ownlib.py
@@ -132,6 +132,8 @@
def test_getting_errno(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
+ if sys.platform == 'win32':
+ py.test.skip("fails, errno at multiple addresses")
ffi = FFI(backend=self.Backend())
ffi.cdef("""
int test_getting_errno(void);
@@ -144,6 +146,8 @@
def test_setting_errno(self):
if self.module is None:
py.test.skip("fix the auto-generation of the tiny test lib")
+ if sys.platform == 'win32':
+ py.test.skip("fails, errno at multiple addresses")
if self.Backend is CTypesBackend and '__pypy__' in sys.modules:
py.test.skip("XXX errno issue with ctypes on pypy?")
ffi = FFI(backend=self.Backend())
@@ -231,7 +235,8 @@
assert ownlib_r() is not None # kept alive by ffi
res = func()
assert res == -1
- assert ffi.errno == 123
+ if sys.platform != 'win32': # else, errno at multiple addresses
+ assert ffi.errno == 123
def test_struct_by_value(self):
if self.module is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit