[pypy-commit] pypy default: fix skips
arigo
pypy.commits at gmail.com
Tue Mar 14 03:42:07 EDT 2017
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r90669:2558b09410d8
Date: 2017-03-14 08:41 +0100
http://bitbucket.org/pypy/pypy/changeset/2558b09410d8/
Log: fix skips
diff --git a/pypy/module/_cffi_backend/test/test_recompiler.py b/pypy/module/_cffi_backend/test/test_recompiler.py
--- a/pypy/module/_cffi_backend/test/test_recompiler.py
+++ b/pypy/module/_cffi_backend/test/test_recompiler.py
@@ -1866,7 +1866,7 @@
def test_call_with_nested_anonymous_struct(self):
import sys
if sys.platform == 'win32':
- py.test.skip("needs a GCC extension")
+ skip("needs a GCC extension")
ffi, lib = self.prepare("""
struct foo { int a; union { int b, c; }; };
struct foo f(void);
@@ -1914,6 +1914,9 @@
"set_source() and not taking a final '...' argument)")
def test_call_with_zero_length_field(self):
+ import sys
+ if sys.platform == 'win32':
+ skip("zero-length field not supported by MSVC")
ffi, lib = self.prepare("""
struct foo { int a; int x[0]; };
struct foo f(void);
@@ -1959,7 +1962,7 @@
def test_call_with_packed_struct(self):
import sys
if sys.platform == 'win32':
- py.test.skip("needs a GCC extension")
+ skip("needs a GCC extension")
ffi, lib = self.prepare("""
struct foo { char y; int x; };
struct foo f(void);
More information about the pypy-commit
mailing list