[pypy-svn] pypy default: One case where the test is not xfail()ing, but fails because of the presence of xfail() on another test

arigo commits-noreply at bitbucket.org
Wed Feb 16 15:44:35 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r42038:8aa8cdbe6d40
Date: 2011-02-16 15:07 +0100
http://bitbucket.org/pypy/pypy/changeset/8aa8cdbe6d40/

Log:	One case where the test is not xfail()ing, but fails because of the
	presence of xfail() on another test

diff --git a/lib-python/modified-2.7.0/ctypes/test/__init__.py b/lib-python/modified-2.7.0/ctypes/test/__init__.py
--- a/lib-python/modified-2.7.0/ctypes/test/__init__.py
+++ b/lib-python/modified-2.7.0/ctypes/test/__init__.py
@@ -211,9 +211,9 @@
     """
     Poor's man xfail: remove it when all the failures have been fixed
     """
-    def new_method(self):
+    def new_method(self, *args, **kwds):
         try:
-            method(self)
+            method(self, *args, **kwds)
         except:
             pass
         else:

diff --git a/lib-python/modified-2.7.0/ctypes/test/test_strings.py b/lib-python/modified-2.7.0/ctypes/test/test_strings.py
--- a/lib-python/modified-2.7.0/ctypes/test/test_strings.py
+++ b/lib-python/modified-2.7.0/ctypes/test/test_strings.py
@@ -46,7 +46,6 @@
         self.assertRaises(TypeError, setattr, buf, "value", memoryview("abc"))
         self.assertRaises(ValueError, setattr, buf, "raw", memoryview("x" * 100))
 
-    @xfail
     def test_c_buffer_deprecated(self):
         # Compatibility with 2.x
         with test_support.check_py3k_warnings():


More information about the Pypy-commit mailing list