[pypy-svn] pypy default: Skip failures on win32

amauryfa commits-noreply at bitbucket.org
Thu Mar 17 19:55:49 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r42773:61fefec7abc6
Date: 2011-03-17 18:08 +0100
http://bitbucket.org/pypy/pypy/changeset/61fefec7abc6/

Log:	Skip failures on win32

diff --git a/lib-python/modified-2.7.0/ctypes/test/test_loading.py b/lib-python/modified-2.7.0/ctypes/test/test_loading.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_loading.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_loading.py
@@ -2,7 +2,7 @@
 import sys, unittest
 import os
 from ctypes.util import find_library
-from ctypes.test import is_resource_enabled
+from ctypes.test import is_resource_enabled, xfail
 
 libc_name = None
 if os.name == "nt":
@@ -75,6 +75,7 @@
             self.assertRaises(AttributeError, dll.__getitem__, 1234)
 
     if os.name == "nt":
+        @xfail
         def test_1703286_A(self):
             from _ctypes import LoadLibrary, FreeLibrary
             # On winXP 64-bit, advapi32 loads at an address that does
@@ -85,6 +86,7 @@
             handle = LoadLibrary("advapi32")
             FreeLibrary(handle)
 
+        @xfail
         def test_1703286_B(self):
             # Since on winXP 64-bit advapi32 loads like described
             # above, the (arbitrarily selected) CloseEventLog function

diff --git a/lib-python/modified-2.7.0/ctypes/test/test_parameters.py b/lib-python/modified-2.7.0/ctypes/test/test_parameters.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_parameters.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_parameters.py
@@ -89,6 +89,8 @@
 
         pa = c_wchar_p.from_param(c_wchar_p(u"123"))
         self.assertEqual(type(pa), c_wchar_p)
+    if sys.platform == "win32":
+        test_cw_strings = xfail(test_cw_strings)
 
     @xfail
     def test_int_pointers(self):


More information about the Pypy-commit mailing list