We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.10.4
=============================================================================================== FAILURES ================================================================================================ ________________________________________________________________________________ test_cross_module_exception_translator _________________________________________________________________________________ @pytest.mark.xfail( "env.MACOS and (env.PYPY or pybind11_tests.compiler_info.startswith('Homebrew Clang'))", raises=RuntimeError, reason="See Issue #2847, PR #2999, PR #4324", ) def test_cross_module_exception_translator(): with pytest.raises(KeyError): # translator registered in cross_module_tests > m.throw_should_be_translated_to_key_error() E RuntimeError ../../pybind11-2.10.4/tests/test_exceptions.py:83: RuntimeError ______________________________________________________________________________________ test_methods_and_attributes ______________________________________________________________________________________ def test_methods_and_attributes(): instance1 = m.ExampleMandA() instance2 = m.ExampleMandA(32) instance1.add1(instance2) instance1.add2(instance2) instance1.add3(instance2) instance1.add4(instance2) instance1.add5(instance2) instance1.add6(32) instance1.add7(32) instance1.add8(32) instance1.add9(32) instance1.add10(32) assert str(instance1) == "ExampleMandA[value=320]" assert str(instance2) == "ExampleMandA[value=32]" assert str(instance1.self1()) == "ExampleMandA[value=320]" assert str(instance1.self2()) == "ExampleMandA[value=320]" assert str(instance1.self3()) == "ExampleMandA[value=320]" assert str(instance1.self4()) == "ExampleMandA[value=320]" assert str(instance1.self5()) == "ExampleMandA[value=320]" assert instance1.internal1() == 320 assert instance1.internal2() == 320 assert instance1.internal3() == 320 assert instance1.internal4() == 320 assert instance1.internal5() == 320 assert instance1.overloaded() == "()" assert instance1.overloaded(0) == "(int)" assert instance1.overloaded(1, 1.0) == "(int, float)" assert instance1.overloaded(2.0, 2) == "(float, int)" assert instance1.overloaded(3, 3) == "(int, int)" assert instance1.overloaded(4.0, 4.0) == "(float, float)" assert instance1.overloaded_const(-3) == "(int) const" assert instance1.overloaded_const(5, 5.0) == "(int, float) const" assert instance1.overloaded_const(6.0, 6) == "(float, int) const" assert instance1.overloaded_const(7, 7) == "(int, int) const" assert instance1.overloaded_const(8.0, 8.0) == "(float, float) const" assert instance1.overloaded_float(1, 1) == "(float, float)" assert instance1.overloaded_float(1, 1.0) == "(float, float)" assert instance1.overloaded_float(1.0, 1) == "(float, float)" assert instance1.overloaded_float(1.0, 1.0) == "(float, float)" assert instance1.value == 320 instance1.value = 100 assert str(instance1) == "ExampleMandA[value=100]" cstats = ConstructorStats.get(m.ExampleMandA) assert cstats.alive() == 2 del instance1, instance2 assert cstats.alive() == 0 > assert cstats.values() == ["32"] E AssertionError: assert ['123', '-100...', '-7', '32'] == ['32'] E At index 0 diff: '123' != '32' E Left contains 5 more items, first extra item: '-100' E Use -v to get more diff cstats = <pybind11_tests.ConstructorStats object at 0x8d7e51970> ../../pybind11-2.10.4/tests/test_methods_and_attributes.py:73: AssertionError ----------------------------------------------------------------------------------------- Captured stdout call ------------------------------------------------------------------------------------------ ### ExampleMandA @ 0x8c86a02e8 created via default constructor ### ExampleMandA @ 0x8c86a0a88 created 32 ### ExampleMandA @ 0x820e39fd0 created via copy constructor ### ExampleMandA @ 0x820e39fd8 created via move constructor ### ExampleMandA @ 0x820e39fd8 destroyed ### ExampleMandA @ 0x820e39fd0 destroyed ### ExampleMandA @ 0x820e39fb8 created via copy constructor ### ExampleMandA @ 0x8c86a0198 created via move constructor ### ExampleMandA @ 0x820e39fb8 destroyed ### ExampleMandA @ 0x8c86a0198 destroyed ### ExampleMandA @ 0x8c86a02e8 destroyed ### ExampleMandA @ 0x8c86a0a88 destroyed =========================================================================================== warnings summary ============================================================================================ ../../../../../../local/lib/python3.9/site-packages/pytest_freezegun.py:17: 1308 warnings /usr/local/lib/python3.9/site-packages/pytest_freezegun.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================================================================================== short test summary info ======================================================================================== SKIPPED [1] ../../pybind11-2.10.4/tests/test_eigen_matrix.py:6: could not import 'pybind11_tests.eigen_matrix': No module named 'pybind11_tests.eigen_matrix'; 'pybind11_tests' is not a package SKIPPED [1] ../../pybind11-2.10.4/tests/test_eigen_tensor.py:6: could not import 'pybind11_tests.eigen_tensor': No module named 'pybind11_tests.eigen_tensor'; 'pybind11_tests' is not a package SKIPPED [1] ../../pybind11-2.10.4/tests/test_pytypes.py:403: Not defined: PYBIND11_HANDLE_REF_DEBUG SKIPPED [1] ../../pybind11-2.10.4/tests/test_stl.py:270: no std::monostate SKIPPED [1] ../../pybind11-2.10.4/tests/test_stl.py:111: no <optional> SKIPPED [1] ../../pybind11-2.10.4/tests/test_stl.py:234: no <filesystem> SKIPPED [1] ../../pybind11-2.10.4/tests/test_stl.py:143: no <experimental/optional> SKIPPED [1] ../../pybind11-2.10.4/tests/test_copy_move.py:77: no <optional> SKIPPED [1] ../../pybind11-2.10.4/tests/test_callbacks.py:203: Current PYBIND11_INTERNALS_VERSION too low SKIPPED [1] ../../pybind11-2.10.4/tests/test_sequences_and_iterators.py:13: no <optional> SKIPPED [1] ../../pybind11-2.10.4/tests/test_builtin_casters.py:145: no <string_view> FAILED ../../pybind11-2.10.4/tests/test_exceptions.py::test_cross_module_exception_translator - RuntimeError FAILED ../../pybind11-2.10.4/tests/test_methods_and_attributes.py::test_methods_and_attributes - AssertionError: assert ['123', '-100...', '-7', '32'] == ['32'] ======================================================================= 2 failed, 643 passed, 11 skipped, 1308 warnings in 42.95s ======================================================================= FAILED: tests/CMakeFiles/pytest /usr/ports/devel/pybind11/work/.build/tests/CMakeFiles/pytest cd /usr/ports/devel/pybind11/work/.build/tests && /usr/local/bin/python3.9 -m pytest /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_async.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_buffers.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_builtin_casters.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_call_policies.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_callbacks.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_chrono.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_class.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_const_name.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_constants_and_functions.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_copy_move.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_custom_type_casters.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_custom_type_setup.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_docstring_options.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_eigen_matrix.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_eigen_tensor.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_enum.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_eval.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_exceptions.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_factory_constructors.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_gil_scoped.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_iostream.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_kwargs_and_defaults.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_local_bindings.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_methods_and_attributes.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_modules.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_multiple_inheritance.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_numpy_array.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_numpy_dtypes.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_numpy_vectorize.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_opaque_types.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_operator_overloading.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_pickling.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_pytypes.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_sequences_and_iterators.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_smart_ptr.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_stl.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_stl_binders.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_tagbased_polymorphic.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_thread.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_union.py /usr/ports/devel/pybind11/work/pybind11-2.10.4/tests/test_virtual_functions.py ninja: build stopped: subcommand failed. *** Error code 1
FreeBSD 13.1
n/a
Not a regression
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.10.4
Problem description
FreeBSD 13.1
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: