Author: Ronan Lamy <[email protected]>
Branch: py3.6
Changeset: r97313:dfa10ae95bae
Date: 2019-08-27 19:41 +0100
http://bitbucket.org/pypy/pypy/changeset/dfa10ae95bae/
Log: Don't use @xfail for tests that can't possibly work on pypy
diff --git a/lib-python/3/ctypes/test/test_callbacks.py
b/lib-python/3/ctypes/test/test_callbacks.py
--- a/lib-python/3/ctypes/test/test_callbacks.py
+++ b/lib-python/3/ctypes/test/test_callbacks.py
@@ -1,7 +1,7 @@
import functools
import unittest
+from test import support
from ctypes import *
-from ctypes.test import xfail
from ctypes.test import need_symbol
import _ctypes_test
@@ -96,7 +96,7 @@
self.check_type(c_char_p, "abc")
self.check_type(c_char_p, "def")
- @xfail
+ @support.refcount_test
def test_pyobject(self):
o = ()
from sys import getrefcount as grc
diff --git a/lib-python/3/ctypes/test/test_python_api.py
b/lib-python/3/ctypes/test/test_python_api.py
--- a/lib-python/3/ctypes/test/test_python_api.py
+++ b/lib-python/3/ctypes/test/test_python_api.py
@@ -1,5 +1,4 @@
from ctypes import *
-from ctypes.test import xfail
import unittest, sys
from test import support
@@ -19,9 +18,9 @@
else:
c_py_ssize_t = c_int
[email protected]_only
class PythonAPITestCase(unittest.TestCase):
- @xfail
def test_PyBytes_FromStringAndSize(self):
PyBytes_FromStringAndSize = pythonapi.PyBytes_FromStringAndSize
@@ -71,7 +70,6 @@
del pyobj
self.assertEqual(grc(s), ref)
- @xfail
def test_PyOS_snprintf(self):
PyOS_snprintf = pythonapi.PyOS_snprintf
PyOS_snprintf.argtypes = POINTER(c_char), c_size_t, c_char_p
@@ -86,7 +84,6 @@
# not enough arguments
self.assertRaises(TypeError, PyOS_snprintf, buf)
- @xfail
def test_pyobject_repr(self):
self.assertEqual(repr(py_object()), "py_object(<NULL>)")
self.assertEqual(repr(py_object(42)), "py_object(42)")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit