Closed
Description
Issue description
Test fails on current mainline branch:
pybind11/tests/test_builtin_casters.py
Lines 302 to 305 in 0e01c24
Reproducible example code
$ cd pybind11
$ git log -n 1 --oneline --no-decorate
0e01c243 Generalizing suppression for pypocketfft. (#2896)
$ mkdir build && cd build
$ cmake .. -GNinja -DPYBIND11_PYTHON_VERSION=3.8 -DPYBIND11_TEST_OVERRIDE=test_builtin_casters.cpp
...
-- PYTHON 3.8.0
...
$ env PYTEST_ADDOPTS="-s -x" ninja pytest
...
# TODO: Avoid DeprecationWarning in `PyLong_AsLong` (and similar)
if (3, 8) <= env.PY < (3, 10):
with pytest.deprecated_call():
> assert convert(Int()) == 42
E AssertionError: Did not produce DeprecationWarning or PendingDeprecationWarning
Metadata
Metadata
Assignees
Labels
No labels