mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 14:59:27 +00:00
Remove PyPy 3.8 and 3.9 testing. Make a pass through the entire repo to remove obviously obsolete workarounds for PyPy < 3.10. (#5578)
This commit is contained in:
committed by
GitHub
parent
566894d5f1
commit
48eb5ad9b9
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -36,8 +36,6 @@ jobs:
|
|||||||
- '3.9'
|
- '3.9'
|
||||||
- '3.12'
|
- '3.12'
|
||||||
- '3.13'
|
- '3.13'
|
||||||
- 'pypy-3.8'
|
|
||||||
- 'pypy-3.9'
|
|
||||||
- 'pypy-3.10'
|
- 'pypy-3.10'
|
||||||
- 'pypy-3.11'
|
- 'pypy-3.11'
|
||||||
- 'graalpy-24.1'
|
- 'graalpy-24.1'
|
||||||
@@ -55,10 +53,6 @@ jobs:
|
|||||||
-DPYBIND11_FINDPYTHON=OFF
|
-DPYBIND11_FINDPYTHON=OFF
|
||||||
-DCMAKE_CXX_FLAGS="-D_=1"
|
-DCMAKE_CXX_FLAGS="-D_=1"
|
||||||
exercise_D_: 1
|
exercise_D_: 1
|
||||||
- runs-on: ubuntu-20.04
|
|
||||||
python: 'pypy-3.8'
|
|
||||||
args: >
|
|
||||||
-DPYBIND11_FINDPYTHON=OFF
|
|
||||||
- runs-on: windows-2019
|
- runs-on: windows-2019
|
||||||
python: '3.8'
|
python: '3.8'
|
||||||
args: >
|
args: >
|
||||||
|
|||||||
@@ -561,12 +561,6 @@ struct error_fetch_and_normalize {
|
|||||||
+ " failed to obtain the name "
|
+ " failed to obtain the name "
|
||||||
"of the normalized active exception type.");
|
"of the normalized active exception type.");
|
||||||
}
|
}
|
||||||
# if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x07030a00
|
|
||||||
// This behavior runs the risk of masking errors in the error handling, but avoids a
|
|
||||||
// conflict with PyPy, which relies on the normalization here to change OSError to
|
|
||||||
// FileNotFoundError (https://github.com/pybind/pybind11/issues/4075).
|
|
||||||
m_lazy_error_string = exc_type_name_norm;
|
|
||||||
# else
|
|
||||||
if (exc_type_name_norm != m_lazy_error_string) {
|
if (exc_type_name_norm != m_lazy_error_string) {
|
||||||
std::string msg = std::string(called)
|
std::string msg = std::string(called)
|
||||||
+ ": MISMATCH of original and normalized "
|
+ ": MISMATCH of original and normalized "
|
||||||
@@ -578,7 +572,6 @@ struct error_fetch_and_normalize {
|
|||||||
msg += ": " + format_value_and_trace();
|
msg += ": " + format_value_and_trace();
|
||||||
pybind11_fail(msg);
|
pybind11_fail(msg);
|
||||||
}
|
}
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import env # noqa: F401
|
|
||||||
from pybind11_tests import local_bindings as m
|
from pybind11_tests import local_bindings as m
|
||||||
|
|
||||||
|
|
||||||
@@ -181,7 +180,6 @@ def test_internal_locals_differ():
|
|||||||
assert m.local_cpp_types_addr() != cm.local_cpp_types_addr()
|
assert m.local_cpp_types_addr() != cm.local_cpp_types_addr()
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.xfail("env.PYPY and sys.pypy_version_info < (7, 3, 2)")
|
|
||||||
def test_stl_caster_vs_stl_bind(msg):
|
def test_stl_caster_vs_stl_bind(msg):
|
||||||
"""One module uses a generic vector caster from `<pybind11/stl.h>` while the other
|
"""One module uses a generic vector caster from `<pybind11/stl.h>` while the other
|
||||||
exports `std::vector<int>` via `py:bind_vector` and `py::module_local`"""
|
exports `std::vector<int>` via `py:bind_vector` and `py::module_local`"""
|
||||||
|
|||||||
@@ -263,7 +263,6 @@ def test_mi_static_properties():
|
|||||||
assert d.static_value == 0
|
assert d.static_value == 0
|
||||||
|
|
||||||
|
|
||||||
# Requires PyPy 6+
|
|
||||||
def test_mi_dynamic_attributes():
|
def test_mi_dynamic_attributes():
|
||||||
"""Mixing bases with and without dynamic attribute support"""
|
"""Mixing bases with and without dynamic attribute support"""
|
||||||
|
|
||||||
|
|||||||
@@ -198,7 +198,6 @@ class CustomContains:
|
|||||||
(CustomContains(), m.obj_contains),
|
(CustomContains(), m.obj_contains),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@pytest.mark.xfail("env.PYPY and sys.pypy_version_info < (7, 3, 10)", strict=False)
|
|
||||||
def test_unhashable_exceptions(arg, func):
|
def test_unhashable_exceptions(arg, func):
|
||||||
class Unhashable:
|
class Unhashable:
|
||||||
__hash__ = None
|
__hash__ = None
|
||||||
|
|||||||
Reference in New Issue
Block a user