Skip to content

Commit 2848431

Browse files
committed
Skip a few tests due to bugs in PyPy
1 parent e6bd3d7 commit 2848431

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ matrix:
192192
make pytest -j 2"
193193
set +ex
194194
allow_failures:
195-
- name: PyPy 7.3, Python 2.7, c++11, gcc 4.8
196-
- name: PyPy 7.3, Python 3.6, c++11, gcc 5
197195
- name: Python 3.9 beta, c++17, gcc 7 (w/o numpy/scipy)
198196
cache:
199197
directories:

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def pytest_configure():
215215
pytest.requires_eigen_and_scipy = skipif(
216216
not have_eigen or not scipy, reason="eigen and/or scipy are not installed")
217217
pytest.unsupported_on_pypy = skipif(pypy, reason="unsupported on PyPy")
218+
pytest.bug_in_pypy = skipif(pypy, reason="bug in PyPy")
218219
pytest.unsupported_on_pypy3 = skipif(pypy and sys.version_info.major >= 3,
219220
reason="unsupported on PyPy3")
220221
pytest.unsupported_on_pypy_lt_6 = skipif(pypy and sys.pypy_version_info[0] < 6,

tests/test_local_bindings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def test_internal_locals_differ():
152152
assert m.local_cpp_types_addr() != cm.local_cpp_types_addr()
153153

154154

155+
@pytest.bug_in_pypy
155156
def test_stl_caster_vs_stl_bind(msg):
156157
"""One module uses a generic vector caster from `<pybind11/stl.h>` while the other
157158
exports `std::vector<int>` via `py:bind_vector` and `py::module_local`"""

tests/test_multiple_inheritance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ def test_multiple_inheritance_cpp():
1010
assert mt.bar() == 4
1111

1212

13+
@pytest.bug_in_pypy
1314
def test_multiple_inheritance_mix1():
1415
class Base1:
1516
def __init__(self, i):
@@ -48,7 +49,7 @@ def __init__(self, i, j):
4849
assert mt.foo() == 3
4950
assert mt.bar() == 4
5051

51-
52+
@pytest.bug_in_pypy
5253
def test_multiple_inheritance_python():
5354

5455
class MI1(m.Base1, m.Base2):

0 commit comments

Comments
 (0)