Created
February 11, 2025 20:54
-
-
Save ngoldbaum/b01ea1cd3c6f39fbf2e68938b6489243 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goldbaum at Nathans-MBP in ~/Documents/pyo3 on fix-freelist | |
± nox -s tests | |
python(51961,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
nox > Error while collecting sessions. | |
nox > Sessions not found: tests | |
goldbaum at Nathans-MBP in ~/Documents/pyo3 on fix-freelist | |
± nox -s test | |
python(52493,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
nox > Running session test | |
nox > cargo test --no-fail-fast --package=pyo3-build-config | |
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s | |
Running unittests src/lib.rs (target/debug/deps/pyo3_build_config-1bf2830ed7846f3b) | |
running 37 tests | |
test impl_::tests::default_lib_name_unix ... ok | |
test errors::tests::error_report ... ok | |
test impl_::tests::config_from_empty_sysconfigdata ... ok | |
test impl_::tests::build_flags_fixup ... ok | |
test impl_::tests::abi3_version_cannot_be_higher_than_interpreter ... ok | |
test impl_::tests::build_flags_default ... ok | |
test impl_::tests::build_flags_from_sysconfigdata ... ok | |
test impl_::tests::default_lib_name_windows ... ok | |
test impl_::tests::config_from_sysconfigdata_framework ... ok | |
test impl_::tests::interpreter_version_reduced_to_abi3 ... ok | |
test impl_::tests::config_from_sysconfigdata ... ok | |
test impl_::tests::mingw_hardcoded_cross_compile ... ok | |
test impl_::tests::parse_cross_python_version ... ok | |
test impl_::tests::parse_script_output ... ok | |
test impl_::tests::pypy_hardcoded_cross_compile ... ok | |
test impl_::tests::test_build_script_outputs_abi3 ... ok | |
test impl_::tests::test_build_script_outputs_base ... ok | |
test impl_::tests::test_build_script_outputs_debug ... ok | |
test impl_::tests::test_build_script_outputs_gil_disabled ... ok | |
test impl_::tests::test_conda_env_interpreter ... ok | |
test impl_::tests::test_config_file_defaults ... ok | |
test impl_::tests::test_config_file_roundtrip ... ok | |
test impl_::tests::test_config_file_unknown_keys ... ok | |
test impl_::tests::test_config_file_roundtrip_with_escaping ... ok | |
test impl_::tests::test_from_pyo3_config_file_env_rebuild ... ok | |
test impl_::tests::test_find_sysconfigdata_in_invalid_lib_dir ... ok | |
test impl_::tests::test_not_cross_compiling_from_to ... ok | |
test impl_::tests::test_is_cross_compiling_from_to ... ok | |
test impl_::tests::test_venv_interpreter ... ok | |
test impl_::tests::unix_hardcoded_abi3_compile ... ok | |
test impl_::tests::unix_hardcoded_cross_compile ... ok | |
test impl_::tests::windows_hardcoded_abi3_compile ... ok | |
test impl_::tests::windows_hardcoded_cross_compile ... ok | |
test tests::extension_module_link_args ... ok | |
python(53001,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53003,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53002,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53006,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53007,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53005,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
test impl_::tests::config_from_interpreter ... ok | |
python(53008,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
python(53009,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
test impl_::tests::test_run_python_script ... ok | |
test impl_::tests::test_run_python_script_with_envs ... ok | |
test result: ok. 37 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.34s | |
Doc-tests pyo3_build_config | |
running 1 test | |
test pyo3-build-config/src/impl_.rs - impl_::BuildFlags (line 1149) ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s | |
nox > cargo test --no-fail-fast --package=pyo3-macros-backend | |
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s | |
Running unittests src/lib.rs (target/debug/deps/pyo3_macros_backend-2c16c4825a3ec2b3) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Doc-tests pyo3_macros_backend | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
nox > cargo test --no-fail-fast --package=pyo3-macros | |
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s | |
Running unittests src/lib.rs (target/debug/deps/pyo3_macros-84e5d20f224e0434) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Doc-tests pyo3_macros | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
nox > cargo test --no-fail-fast --package=pyo3-ffi | |
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s | |
Running unittests src/lib.rs (target/debug/deps/pyo3_ffi-47a8655efccd261b) | |
pyo3_ffi-47a8655efccd261b(53022,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 10 tests | |
test compat::py_3_10::test_Py_NewRef_export::test_export ... ok | |
test compat::py_3_10::test_Py_XNewRef_export::test_export ... ok | |
test compat::py_3_13::test_PyDict_GetItemRef_export::test_export ... ok | |
test compat::py_3_13::test_PyImport_AddModuleRef_export::test_export ... ok | |
test compat::py_3_13::test_PyList_Clear_export::test_export ... ok | |
test compat::py_3_13::test_PyList_Extend_export::test_export ... ok | |
test compat::py_3_13::test_PyList_GetItemRef_export::test_export ... ok | |
test compat::py_3_13::test_PyWeakref_GetRef_export::test_export ... ok | |
test compat::py_3_9::test_PyObject_CallMethodNoArgs_export::test_export ... ok | |
test compat::py_3_9::test_PyObject_CallNoArgs_export::test_export ... ok | |
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Doc-tests pyo3_ffi | |
running 5 tests | |
test pyo3-ffi/src/lib.rs - (line 125) ... ignored | |
test pyo3-ffi/src/lib.rs - (line 58) ... ignored | |
test pyo3-ffi/src/lib.rs - (line 74) ... ignored | |
test pyo3-ffi/src/lib.rs - c_str (line 354) ... ok | |
test pyo3-ffi/src/lib.rs - (line 132) ... ok | |
test result: ok. 2 passed; 0 failed; 3 ignored; 0 measured; 0 filtered out; finished in 0.49s | |
nox > cargo test --no-fail-fast | |
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.09s | |
Running unittests src/lib.rs (target/debug/deps/pyo3-ac906cf3b9e6a601) | |
pyo3-ac906cf3b9e6a601(53033,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 705 tests | |
test buffer::tests::test_compatible_size ... ok | |
test buffer::tests::test_element_type_from_format ... ok | |
test conversions::std::array::tests::array_try_from_fn ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 8 at 0x000103d43f88 by thread T10 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 8 at 0x000103d43f88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Location is global '_PyRuntime' at 0x000103d3da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107903840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x000107903d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T10 (tid=18691985, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T4 (tid=18691979, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test conversions::std::array::tests::test_array_intopyobject_impl ... ok | |
test conversions::std::array::tests::test_intopyobject_array_conversion ... ok | |
test conversions::std::array::tests::test_pyclass_intopy_array_conversion ... ok | |
test buffer::tests::test_debug ... ok | |
test conversions::std::array::tests::test_into_pyobject_array_conversion ... ok | |
test conversions::std::array::tests::test_extract_bytearray_to_array ... ok | |
test conversions::std::array::tests::test_extract_non_iterable_to_array ... ok | |
test conversions::std::array::tests::test_extract_invalid_sequence_length ... ok | |
test conversions::std::array::tests::test_extract_small_bytearray_to_array ... ok | |
test conversions::std::map::tests::test_btreemap_into_py ... ok | |
test buffer::tests::test_bytes_buffer ... ok | |
test conversions::std::map::tests::test_hashmap_into_python ... ok | |
test conversions::std::map::tests::test_hashmap_to_python ... ok | |
test conversions::std::map::tests::test_btreemap_to_python ... ok | |
test conversions::std::ipaddr::test_ipaddr::test_from_pystring ... ok | |
test conversions::std::num::test_128bit_integers::test_i128_min ... ok | |
test conversions::std::num::test_128bit_integers::test_i128_max ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_i128_max ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_i128_min ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 8 at 0x000103d8e058 by thread T28 (mutexes: write M0): | |
#0 long_from_non_binary_base longobject.c:2753 (libpython3.13t.dylib:arm64+0xe1274) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#10 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#11 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#12 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#13 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#14 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#15 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#16 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#17 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#18 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#19 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#20 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#21 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#22 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#23 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#24 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#25 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#26 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#27 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#28 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#29 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#30 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 8 at 0x000103d8e058 by thread T24 (mutexes: write M1): | |
#0 long_from_non_binary_base longobject.c:2757 (libpython3.13t.dylib:arm64+0xe12a8) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 factor_rule parser.c:14009 (libpython3.13t.dylib:arm64+0x17128) | |
#10 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#11 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#12 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#13 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#14 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#15 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#16 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#17 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#18 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#19 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#20 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#21 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#22 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#23 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#24 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#25 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#26 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#27 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#28 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#29 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#30 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#31 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Location is global '_MergedGlobals' at 0x000103d8df70 (libpython3.13t.dylib+0x632058) | |
Mutex M0 (0x000107903300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x0001079033c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T28 (tid=18692027, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T24 (tid=18692023, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race longobject.c:2753 in long_from_non_binary_base | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 4 at 0x000103d8df98 by thread T32 (mutexes: write M0): | |
#0 long_from_non_binary_base longobject.c:2799 (libpython3.13t.dylib:arm64+0xe1460) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#10 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#11 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#12 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#13 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#14 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#15 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#16 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#17 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#18 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#19 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#20 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#21 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#22 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#23 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#24 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#25 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#26 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#27 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#28 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#29 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#30 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 4 at 0x000103d8df98 by thread T24 (mutexes: write M1): | |
#0 long_from_non_binary_base longobject.c:2769 (libpython3.13t.dylib:arm64+0xe12ec) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 factor_rule parser.c:14009 (libpython3.13t.dylib:arm64+0x17128) | |
#10 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#11 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#12 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#13 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#14 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#15 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#16 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#17 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#18 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#19 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#20 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#21 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#22 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#23 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#24 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#25 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#26 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#27 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#28 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#29 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#30 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#31 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Location is global '_MergedGlobals' at 0x000103d8df70 (libpython3.13t.dylib+0x631f98) | |
Mutex M0 (0x000107903840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x0001079033c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T32 (tid=18692031, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T24 (tid=18692023, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race longobject.c:2799 in long_from_non_binary_base | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 8 at 0x000103d8e180 by thread T28 (mutexes: write M0): | |
#0 long_from_non_binary_base longobject.c:2800 (libpython3.13t.dylib:arm64+0xe1470) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#10 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#11 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#12 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#13 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#14 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#15 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#16 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#17 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#18 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#19 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#20 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#21 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#22 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#23 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#24 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#25 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#26 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#27 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#28 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#29 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#30 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 8 at 0x000103d8e180 by thread T24 (mutexes: write M1): | |
#0 long_from_non_binary_base longobject.c:2767 (libpython3.13t.dylib:arm64+0xe12dc) | |
#1 PyLong_FromString longobject.c:3039 (libpython3.13t.dylib:arm64+0xd9f58) | |
#2 parsenumber_raw pegen.c (libpython3.13t.dylib:arm64+0x7134) | |
#3 _PyPegen_number_token pegen.c:704 (libpython3.13t.dylib:arm64+0x63ec) | |
#4 atom_rule parser.c:14881 (libpython3.13t.dylib:arm64+0x18cac) | |
#5 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17e80) | |
#6 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#7 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#8 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#9 factor_rule parser.c:14009 (libpython3.13t.dylib:arm64+0x17128) | |
#10 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#11 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#12 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#13 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#14 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#15 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#16 comparison_rule parser.c:12190 (libpython3.13t.dylib:arm64+0x1ce40) | |
#17 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#18 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#19 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#20 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#21 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#22 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#23 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#24 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#25 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#26 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#27 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#28 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#29 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#30 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#31 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Location is global '_MergedGlobals' at 0x000103d8df70 (libpython3.13t.dylib+0x632180) | |
Mutex M0 (0x000107903300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x0001079033c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T28 (tid=18692027, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T24 (tid=18692023, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race longobject.c:2800 in long_from_non_binary_base | |
================== | |
test conversions::std::num::test_128bit_integers::test_i128_overflow ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_i128_zero_value ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_u128_overflow ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_u128_max ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_i128_overflow ... ok | |
test conversions::std::num::tests::i128::from_py_float_type_error ... ok | |
test conversions::std::num::tests::i128::to_py_object_and_back ... ok | |
test conversions::std::num::tests::i16::from_py_float_type_error ... ok | |
test conversions::std::num::test_128bit_integers::test_u128_max ... ok | |
test conversions::std::num::tests::i16::to_py_object_and_back ... ok | |
test conversions::std::num::tests::i128::from_py_string_type_error ... ok | |
test conversions::std::num::tests::i32::from_py_float_type_error ... ok | |
test conversions::std::num::test_128bit_integers::test_u128_overflow ... ok | |
test conversions::std::num::tests::i16::from_py_string_type_error ... ok | |
test conversions::std::num::tests::i64::from_py_float_type_error ... ok | |
test conversions::std::num::tests::i32::from_py_string_type_error ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_u128_zero_value ... ok | |
test conversions::std::num::tests::i8::from_py_float_type_error ... ok | |
test conversions::std::num::tests::i64::from_py_string_type_error ... ok | |
test conversions::std::num::tests::i64::to_py_object_and_back ... ok | |
test conversions::std::num::tests::i8::to_py_object_and_back ... ok | |
test conversions::std::num::tests::isize::from_py_float_type_error ... ok | |
test conversions::std::num::tests::i32::to_py_object_and_back ... ok | |
test conversions::std::num::tests::i8::from_py_string_type_error ... ok | |
test conversions::std::num::tests::isize::to_py_object_and_back ... ok | |
test conversions::std::num::tests::isize::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i128::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i128::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_i16::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i16::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_i128::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_i16::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_i32::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_i32::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i32::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_i64::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_i64::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_i64::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i8::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_i8::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_i8::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_isize::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_isize::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_u128::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_isize::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_u128::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_u128::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_u16::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_u16::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_u16::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_u32::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_u32::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_u32::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_u64::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_u64::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_u8::to_py_object_and_back ... ok | |
test conversions::std::num::tests::nonzero_u8::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_u64::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_usize::from_py_float_type_error ... ok | |
test conversions::std::num::tests::nonzero_u8::from_py_float_type_error ... ok | |
test conversions::std::num::tests::test_i64_bool ... ok | |
test conversions::std::num::tests::test_i64_f64 ... ok | |
test conversions::std::num::tests::nonzero_usize::from_py_string_type_error ... ok | |
test conversions::std::num::tests::nonzero_usize::to_py_object_and_back ... ok | |
test conversions::std::num::tests::test_i64_max ... ok | |
test conversions::std::num::tests::test_i64_min ... ok | |
test conversions::std::num::tests::test_nonzero_i64_max ... ok | |
test conversions::std::num::tests::test_nonzero_u64_max ... ok | |
test conversions::std::num::tests::test_nonzero_i64_min ... ok | |
test conversions::std::num::tests::test_nonzero_u32_max ... ok | |
test conversions::std::num::tests::test_u32_max ... ok | |
test conversions::std::num::tests::u128::from_py_float_type_error ... ok | |
test conversions::std::num::tests::u128::to_py_object_and_back ... ok | |
test conversions::std::num::tests::test_u64_max ... ok | |
test conversions::std::num::tests::u128::from_py_string_type_error ... ok | |
test conversions::std::num::tests::u16::from_py_string_type_error ... ok | |
test conversions::std::num::tests::u16::from_py_float_type_error ... ok | |
test conversions::std::num::tests::u32::from_py_string_type_error ... ok | |
test conversions::std::num::tests::u32::from_py_float_type_error ... ok | |
test conversions::std::num::tests::u64::from_py_float_type_error ... ok | |
test conversions::std::num::tests::u32::to_py_object_and_back ... ok | |
test conversions::std::num::tests::u16::to_py_object_and_back ... ok | |
test conversions::std::num::tests::u8::from_py_float_type_error ... ok | |
test conversions::std::num::tests::u64::to_py_object_and_back ... ok | |
test conversions::std::num::tests::u64::from_py_string_type_error ... ok | |
test conversions::std::num::tests::u8::to_py_object_and_back ... ok | |
test conversions::std::num::tests::u8::from_py_string_type_error ... ok | |
test conversions::std::num::tests::usize::from_py_float_type_error ... ok | |
test conversions::std::num::tests::usize::to_py_object_and_back ... ok | |
test conversions::std::num::tests::usize::from_py_string_type_error ... ok | |
test conversions::std::option::tests::test_option_as_ptr ... ok | |
test conversions::std::osstr::tests::test_non_utf8_conversion ... ok | |
test conversions::std::osstr::tests::test_intopyobject_roundtrip ... ok | |
test conversions::std::path::tests::test_intopyobject_roundtrip ... ok | |
test conversions::std::path::tests::test_non_utf8_conversion ... ok | |
test conversions::std::set::tests::test_set_into_pyobject ... ok | |
test conversions::std::set::tests::test_extract_btreeset ... ok | |
test conversions::std::set::tests::test_set_into_py ... ok | |
test conversions::std::set::tests::test_extract_hashset ... ok | |
test conversions::std::slice::tests::test_cow_intopyobject_impl ... ok | |
test conversions::std::slice::tests::test_slice_intopyobject_impl ... ok | |
test conversions::std::slice::tests::test_extract_bytes ... ok | |
test conversions::std::string::tests::test_extract_char ... ok | |
test conversions::std::string::tests::test_cow_into_pyobject ... ok | |
test conversions::std::slice::tests::test_cow_impl ... ok | |
test conversions::std::string::tests::test_cow_into_py ... ok | |
test conversions::std::string::tests::test_extract_char_err ... ok | |
test conversions::std::string::tests::test_extract_str ... ok | |
test conversions::std::string::tests::test_string_into_pyobject ... ok | |
test conversions::std::string::tests::test_non_bmp ... ok | |
test conversions::std::time::tests::test_duration_into_pyobject_overflow ... ok | |
test conversions::std::time::tests::test_duration_frompyobject ... ok | |
test conversions::std::time::tests::test_time_intopyobject ... ok | |
test conversions::std::time::tests::test_time_intopyobject_overflow ... ok | |
test conversions::std::vec::tests::test_vec_intopyobject_impl ... ok | |
test conversions::std::time::tests::test_time_frompyobject_before_epoch ... ok | |
test conversions::std::time::tests::test_duration_frompyobject_negative ... ok | |
test conversions::std::time::tests::test_time_frompyobject ... ok | |
test conversions::std::vec::tests::test_vec_reference_intopyobject_impl ... ok | |
test conversions::std::time::tests::test_duration_into_pyobject ... ok | |
test err::err_state::tests::test_reentrant_normalization - should panic ... ok | |
test err::tests::err_display ... ok | |
test err::tests::err_debug ... ok | |
test err::tests::invalid_error_type ... ok | |
test err::tests::no_error ... ok | |
test err::tests::set_valueerror ... ok | |
test err::tests::set_typeerror ... ok | |
test err::tests::test_pyerr_matches ... ok | |
test err::tests::test_pyerr_send_sync ... ok | |
test err::tests::test_pyerr_cause ... ok | |
test err::impls::tests::io_errors ... ok | |
test err::err_state::tests::test_no_deadlock_thread_switch ... ok | |
test buffer::tests::test_array_buffer ... ok | |
test conversions::std::ipaddr::test_ipaddr::test_roundtrip ... ok | |
test err::tests::warnings ... ok | |
pyo3_runtime.PanicException: new panic | |
test err::tests::fetching_panic_exception_resumes_unwind - should panic ... ok | |
test conversions::std::num::test_128bit_integers::test_u128_roundtrip ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_u128_roundtrip ... ok | |
test exceptions::socket::tests::herror ... ok | |
test exceptions::socket::tests::gaierror ... ok | |
test exceptions::tests::PyArithmeticError ... ok | |
test exceptions::socket::tests::timeout ... ok | |
test exceptions::tests::PyAssertionError ... ok | |
test exceptions::tests::PyBaseException ... ok | |
test exceptions::tests::PyAttributeError ... ok | |
test exceptions::tests::PyBlockingIOError ... ok | |
test exceptions::tests::PyBaseExceptionGroup ... ok | |
test exceptions::tests::PyBufferError ... ok | |
test exceptions::tests::PyBrokenPipeError ... ok | |
test exceptions::tests::PyBytesWarning ... ok | |
test exceptions::tests::PyChildProcessError ... ok | |
test exceptions::tests::PyConnectionAbortedError ... ok | |
test exceptions::tests::PyConnectionError ... ok | |
test exceptions::tests::PyConnectionRefusedError ... ok | |
test exceptions::tests::PyConnectionResetError ... ok | |
test exceptions::tests::PyDeprecationWarning ... ok | |
test exceptions::tests::PyEOFError ... ok | |
test exceptions::tests::PyEnvironmentError ... ok | |
test exceptions::tests::PyEncodingWarning ... ok | |
test exceptions::tests::PyException ... ok | |
test exceptions::tests::PyFileExistsError ... ok | |
test exceptions::tests::PyFloatingPointError ... ok | |
test exceptions::tests::PyFileNotFoundError ... ok | |
test exceptions::tests::PyFutureWarning ... ok | |
test exceptions::tests::PyGeneratorExit ... ok | |
test exceptions::tests::PyImportError ... ok | |
test exceptions::tests::PyImportWarning ... ok | |
test exceptions::tests::PyIOError ... ok | |
test exceptions::tests::PyIndexError ... ok | |
test exceptions::tests::PyInterruptedError ... ok | |
test exceptions::tests::PyKeyError ... ok | |
test exceptions::tests::PyIsADirectoryError ... ok | |
test exceptions::tests::PyKeyboardInterrupt ... ok | |
test conversions::std::num::test_128bit_integers::test_nonzero_i128_roundtrip ... ok | |
test exceptions::tests::PyMemoryError ... ok | |
test exceptions::tests::PyLookupError ... ok | |
test exceptions::tests::PyModuleNotFoundError ... ok | |
test exceptions::tests::PyNameError ... ok | |
test exceptions::tests::PyNotImplementedError ... ok | |
test exceptions::tests::PyOSError ... ok | |
test exceptions::tests::PyNotADirectoryError ... ok | |
test exceptions::tests::PyOverflowError ... ok | |
test exceptions::tests::PyPendingDeprecationWarning ... ok | |
test exceptions::tests::PyProcessLookupError ... ok | |
test exceptions::tests::PyRecursionError ... ok | |
test exceptions::tests::PyReferenceError ... ok | |
test exceptions::tests::PyPermissionError ... ok | |
test exceptions::tests::PyRuntimeWarning ... ok | |
test exceptions::tests::PyRuntimeError ... ok | |
test exceptions::tests::PyStopAsyncIteration ... ok | |
test exceptions::tests::PyStopIteration ... ok | |
test exceptions::tests::PySyntaxError ... ok | |
test exceptions::tests::PySystemError ... ok | |
test exceptions::tests::PySyntaxWarning ... ok | |
test exceptions::tests::PyTimeoutError ... ok | |
test exceptions::tests::PySystemExit ... ok | |
test exceptions::tests::PyTypeError ... ok | |
test exceptions::tests::PyUnboundLocalError ... ok | |
test exceptions::tests::PyUnicodeDecodeError ... ok | |
test exceptions::tests::PyUnicodeError ... ok | |
test exceptions::tests::PyUnicodeWarning ... ok | |
test exceptions::tests::PyUnicodeEncodeError ... ok | |
test conversions::std::num::test_128bit_integers::test_i128_roundtrip ... ok | |
test exceptions::tests::PyUserWarning ... ok | |
test exceptions::tests::PyValueError ... ok | |
test exceptions::tests::PyUnicodeTranslateError ... ok | |
test exceptions::tests::PyWarning ... ok | |
test exceptions::tests::PyZeroDivisionError ... ok | |
test exceptions::tests::custom_exception ... ok | |
test exceptions::tests::custom_exception_doc ... ok | |
test exceptions::tests::native_exception_debug ... ok | |
test exceptions::tests::custom_exception_dotted_module ... ok | |
test exceptions::tests::custom_exception_doc_expr ... ok | |
test exceptions::tests::test_check_exception ... ok | |
test exceptions::tests::native_exception_display ... ok | |
test ffi::tests::ascii_object_bitfield ... ok | |
test ffi::tests::ascii ... ok | |
test exceptions::tests::unicode_decode_error ... ok | |
test ffi::tests::test_date_fromtimestamp ... ok | |
test ffi::tests::test_get_tzinfo ... ok | |
test ffi::tests::test_datetime_fromtimestamp ... ok | |
test ffi::tests::test_inc_dec_ref ... ok | |
test ffi::tests::test_inc_dec_ref_immortal ... ok | |
test ffi::tests::test_utc_timezone ... ok | |
test ffi::tests::test_timezone_from_offset ... ok | |
test ffi::tests::test_timezone_from_offset_and_name ... ok | |
test gil::tests::dropping_gil_does_not_invalidate_references ... ok | |
test ffi::tests::ucs4 ... ok | |
test gil::tests::test_allow_threads ... ok | |
test gil::tests::test_gil_counts ... ok | |
test gil::tests::test_pyobject_drop_with_gil_decreases_refcnt ... ok | |
test gil::tests::test_gil_guard_update_counts ... ok | |
test exceptions::tests::test_check_exception_nested ... ok | |
test gil::tests::test_update_counts_does_not_deadlock ... ok | |
test impl_::extract_argument::tests::push_parameter_list_empty ... ok | |
test impl_::extract_argument::tests::push_parameter_list_four ... ok | |
test impl_::extract_argument::tests::push_parameter_list_one ... ok | |
test impl_::extract_argument::tests::push_parameter_list_three ... ok | |
test impl_::extract_argument::tests::push_parameter_list_two ... ok | |
test impl_::extract_argument::tests::keyword_not_string ... ok | |
test impl_::pyclass::assertions::tests::test_assert_pyclass_sync ... ok | |
test impl_::pyclass::tests::get_py_for_frozen_class ... ok | |
test impl_::pyclass::tests::get_py_for_non_frozen_class ... ok | |
test gil::tests::test_pyobject_drop_without_gil_doesnt_decrease_refcnt ... ok | |
test impl_::extract_argument::tests::unexpected_keyword_argument ... ok | |
test impl_::pymethods::tests::test_fastcall_function_with_keywords ... ok | |
test impl_::wrap::tests::wrap_option ... ok | |
test impl_::extract_argument::tests::missing_required_arguments ... ok | |
test impl_::pymodule::tests::module_def_new ... ok | |
test impl_::pymodule::tests::module_init ... ok | |
test instance::tests::bound_from_borrowed_ptr_constructors ... ok | |
test instance::tests::explicit_drop_ref ... ok | |
test instance::tests::attr ... ok | |
test instance::tests::invalid_attr ... ok | |
test instance::tests::borrowed_ptr_constructors ... ok | |
test instance::tests::pyobject_from_py ... ok | |
test instance::tests::test_bound_as_any ... ok | |
test instance::tests::py_from_dict ... ok | |
test instance::tests::pystring_attr ... ok | |
test instance::tests::test_bound_into_any ... ok | |
test instance::tests::test_bound_py_conversions ... ok | |
test instance::tests::test_call ... ok | |
test instance::tests::test_debug_fmt ... ok | |
test instance::tests::test_call_tuple_ref ... ok | |
test instance::tests::test_call_for_non_existing_method ... ok | |
test instance::tests::test_py2_into_py_object ... ok | |
test instance::tests::test_display_fmt ... ok | |
test instance::tests::using_macros::py_borrow_methods ... ok | |
test instance::tests::using_macros::bound_borrow_methods ... ok | |
test instance::tests::test_py2_from_py_object ... ok | |
test instance::tests::using_macros::test_into_super ... ok | |
test marker::tests::test_acquire_gil ... ok | |
test instance::tests::using_macros::test_frozen_get ... ok | |
test instance::tests::using_macros::test_as_super ... ok | |
test marker::tests::test_allow_threads_releases_and_acquires_gil ... ok | |
test marker::tests::test_allow_threads_panics_safely ... ok | |
test marker::tests::test_ellipsis ... ok | |
test marker::tests::test_allow_threads_pass_stuff_in ... ok | |
test marker::tests::test_eval ... ok | |
test marshal::tests::marshal_roundtrip ... ok | |
test pybacked::test::py_backed_bytes_empty ... ok | |
test marker::tests::test_py_run_inserts_globals ... ok | |
test pybacked::test::py_backed_bytes ... ok | |
test pybacked::test::py_backed_bytes_from_bytearray ... ok | |
test pybacked::test::py_backed_bytes_into_pyobject ... ok | |
test pybacked::test::py_backed_str ... ok | |
test pybacked::test::py_backed_str_empty ... ok | |
test pybacked::test::py_backed_bytes_from_bytes ... ok | |
test pybacked::test::py_backed_str_into_py ... ok | |
test pybacked::test::rust_backed_bytes_into_pyobject ... ok | |
test pybacked::test::py_backed_str_into_pyobject ... ok | |
test pybacked::test::py_backed_str_try_from ... ok | |
test pybacked::test::test_backed_bytes_hash ... ok | |
test pybacked::test::test_backed_bytes_ord ... ok | |
test pybacked::test::test_backed_str_eq ... ok | |
test pybacked::test::test_backed_bytes_eq ... ok | |
test pybacked::test::test_backed_types_send_sync ... ok | |
test pycell::impl_::tests::test_inherited_mutability ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 8 at 0x000300040838 by thread T343 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2036 (libpython3.13t.dylib:arm64+0x16961c) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::hdfdf96f099d45698 pyclass_init.rs:52 (pyo3-ac906cf3b9e6a601:arm64+0x1001a2efc) | |
Previous write of size 8 at 0x000300040838 by thread T341 (mutexes: write M1): | |
#0 type_ready typeobject.c:8219 (libpython3.13t.dylib:arm64+0x1742d4) | |
#1 PyType_Ready typeobject.c:8272 (libpython3.13t.dylib:arm64+0x16cef0) | |
#2 _PyType_FromMetaclass_impl typeobject.c:4791 (libpython3.13t.dylib:arm64+0x16b3e8) | |
#3 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#4 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h481a95053e080b2c create_type_object.rs:493 (pyo3-ac906cf3b9e6a601:arm64+0x1000bee6c) | |
Mutex M0 (0x000107907300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x000107907000) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T343 (tid=18692413, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T341 (tid=18692411, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2036 in _PyType_AllocNoTrack | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Atomic read of size 8 at 0x0003000408b8 by thread T343 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2038 (libpython3.13t.dylib:arm64+0x16963c) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::hdfdf96f099d45698 pyclass_init.rs:52 (pyo3-ac906cf3b9e6a601:arm64+0x1001a2efc) | |
Previous write of size 8 at 0x0003000408b8 by thread T341 (mutexes: write M1): | |
#0 type_ready typeobject.c:8242 (libpython3.13t.dylib:arm64+0x17609c) | |
#1 PyType_Ready typeobject.c:8272 (libpython3.13t.dylib:arm64+0x16cef0) | |
#2 _PyType_FromMetaclass_impl typeobject.c:4791 (libpython3.13t.dylib:arm64+0x16b3e8) | |
#3 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#4 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h481a95053e080b2c create_type_object.rs:493 (pyo3-ac906cf3b9e6a601:arm64+0x1000bee6c) | |
Mutex M0 (0x000107907300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x000107907000) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T343 (tid=18692413, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T341 (tid=18692411, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2038 in _PyType_AllocNoTrack | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Atomic read of size 8 at 0x000300040800 by thread T343 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2058 (libpython3.13t.dylib:arm64+0x1697e8) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::hdfdf96f099d45698 pyclass_init.rs:52 (pyo3-ac906cf3b9e6a601:arm64+0x1001a2efc) | |
Previous write of size 8 at 0x000300040800 by thread T341 (mutexes: write M1): | |
#0 _Py_NewReference object.c:2483 (libpython3.13t.dylib:arm64+0x123c94) | |
#1 _PyType_AllocNoTrack typeobject.c:2061 (libpython3.13t.dylib:arm64+0x169824) | |
#2 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#3 _PyType_FromMetaclass_impl typeobject.c:4685 (libpython3.13t.dylib:arm64+0x16ae20) | |
#4 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#5 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h481a95053e080b2c create_type_object.rs:493 (pyo3-ac906cf3b9e6a601:arm64+0x1000bee6c) | |
Mutex M0 (0x000107907300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x000107907000) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T343 (tid=18692413, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T341 (tid=18692411, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2058 in _PyType_AllocNoTrack | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Atomic write of size 8 at 0x000300040810 by thread T343 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2058 (libpython3.13t.dylib:arm64+0x169880) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::hdfdf96f099d45698 pyclass_init.rs:52 (pyo3-ac906cf3b9e6a601:arm64+0x1001a2efc) | |
Previous write of size 8 at 0x000300040810 by thread T341 (mutexes: write M1): | |
#0 _Py_NewReference object.c:2483 (libpython3.13t.dylib:arm64+0x123cd4) | |
#1 _PyType_AllocNoTrack typeobject.c:2061 (libpython3.13t.dylib:arm64+0x169824) | |
#2 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#3 _PyType_FromMetaclass_impl typeobject.c:4685 (libpython3.13t.dylib:arm64+0x16ae20) | |
#4 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#5 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h481a95053e080b2c create_type_object.rs:493 (pyo3-ac906cf3b9e6a601:arm64+0x1000bee6c) | |
Mutex M0 (0x000107907300) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x000107907000) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T343 (tid=18692413, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T341 (tid=18692411, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2058 in _PyType_AllocNoTrack | |
================== | |
test pybacked::test::test_backed_str_hash ... ok | |
test pybacked::test::test_backed_str_ord ... ok | |
test pycell::impl_::tests::test_immutable_borrows_prevent_mutable_borrows ... ok | |
test pycell::impl_::tests::test_mutable_borrow_prevents_further_borrows ... ok | |
test pycell::tests::test_as_ptr ... ok | |
test pycell::tests::test_into_ptr ... ok | |
test pycell::tests::test_pyref_as_super ... ok | |
test pycell::impl_::tests::test_thread_safety ... ok | |
test pyclass::gc::tests::py_visit_not_send_sync ... ok | |
test pyclass::tests::test_compare_op_matches ... ok | |
test pycell::tests::test_pyrefmut_as_super ... ok | |
test pycell::tests::test_pyrefs_in_python ... ok | |
test pyclass_init::tests::add_subclass_to_py_is_unsound - should panic ... ok | |
test sync::tests::test_intern ... ok | |
test sync::tests::test_once_cell ... ok | |
test sync::tests::test_once_cell_drop ... ok | |
test sync::tests::test_once_lock_ext ... ok | |
test pycell::impl_::tests::test_thread_safety_2 ... ok | |
test sync::tests::test_critical_section ... ok | |
test types::any::tests::test_any_contains ... ok | |
test types::any::tests::test_any_is_exact_instance_of ... ok | |
test types::any::tests::test_any_is_exact_instance ... ok | |
test sync::tests::test_once_ext ... ok | |
test tests::hygiene::pyfunction::invoke_wrap_pyfunction ... ok | |
test types::any::tests::test_any_is_instance ... ok | |
test types::any::tests::test_any_is_instance_of ... ok | |
test types::any::tests::test_call_for_non_existing_method ... ok | |
test types::any::tests::test_call_method0 ... ok | |
test types::any::tests::test_call_with_kwargs ... ok | |
test types::any::tests::test_eq_methods_floats ... ok | |
test types::any::tests::test_dir ... ok | |
test types::any::tests::test_eq_methods_bools ... ok | |
test types::any::tests::test_fallible_dir ... ok | |
test types::any::tests::test_eq_methods_integers ... ok | |
test types::any::tests::test_eq_methods_strings ... ok | |
test types::any::tests::test_hasattr ... ok | |
test types::any::tests::test_is_ellipsis ... ok | |
test types::any::tests::test_hasattr_error ... ok | |
test types::any::tests::test_is_callable ... ok | |
test types::any::tests::test_nan_eq ... ok | |
test types::any::tests::test_rich_compare_type_error ... ok | |
test types::boolobject::tests::test_false ... ok | |
test types::any::tests::test_lookup_special ... ok | |
test types::boolobject::tests::test_pybool_comparisons ... ok | |
test types::boolobject::tests::test_true ... ok | |
test types::any::tests::test_type ... ok | |
test types::any::tests::test_is_empty ... ok | |
test types::bytearray::tests::test_byte_array_new_with ... ok | |
test types::bytearray::tests::test_as_bytes_mut ... ok | |
test types::bytearray::tests::test_as_bytes ... ok | |
test types::bytearray::tests::test_from ... ok | |
test types::bytearray::tests::test_from_err ... ok | |
test types::bytearray::tests::test_len ... ok | |
test types::bytearray::tests::test_byte_array_new_with_error ... ok | |
test types::bytearray::tests::test_byte_array_new_with_zero_initialised ... ok | |
test types::bytearray::tests::test_to_vec ... ok | |
test types::bytearray::tests::test_try_from ... ok | |
test types::bytes::tests::test_bound_bytes_index ... ok | |
test types::bytearray::tests::test_resize ... ok | |
test types::bytes::tests::test_bytes_new_with ... ok | |
test types::bytes::tests::test_bytes_new_with_zero_initialised ... ok | |
test types::bytes::tests::test_bytes_index ... ok | |
test types::bytes::tests::test_bytes_new_with_error ... ok | |
test types::capsule::tests::test_pycapsule_destructor ... ok | |
test types::bytes::tests::test_comparisons ... ok | |
test types::capsule::tests::test_pycapsule_context ... ok | |
test types::capsule::tests::test_pycapsule_import ... ok | |
test types::capsule::tests::test_pycapsule_struct ... ok | |
test types::capsule::tests::test_pycapsule_no_name ... ok | |
test types::capsule::tests::test_pycapsule_func ... ok | |
test types::code::tests::test_type_object ... ok | |
test types::complex::not_limited_impls::tests::test_abs ... ok | |
test types::complex::not_limited_impls::tests::test_add ... ok | |
test types::capsule::tests::test_vec_context ... ok | |
test types::capsule::tests::test_vec_storage ... ok | |
test types::complex::not_limited_impls::tests::test_neg ... ok | |
test types::complex::not_limited_impls::tests::test_div ... ok | |
test types::complex::not_limited_impls::tests::test_mul ... ok | |
test types::complex::not_limited_impls::tests::test_pow ... ok | |
test types::complex::tests::test_from_double ... ok | |
test types::datetime::tests::test_get_tzinfo ... ok | |
test types::complex::not_limited_impls::tests::test_sub ... ok | |
test types::datetime::tests::test_datetime_fromtimestamp ... ok | |
test types::datetime::tests::test_date_fromtimestamp ... ok | |
test types::dict::tests::dict_into_mapping ... ok | |
test types::datetime::tests::test_new_with_fold ... ok | |
test types::dict::tests::dict_keys_view ... ok | |
test types::dict::tests::dict_as_mapping ... ok | |
test types::dict::tests::dict_update_if_missing ... ok | |
test types::dict::tests::dict_update ... ok | |
test types::dict::tests::test_btreemap_into_dict ... ok | |
test types::dict::tests::dict_items_view ... ok | |
test types::dict::tests::test_contains ... ok | |
test types::dict::tests::dict_values_view ... ok | |
test types::dict::tests::test_del_item_does_not_update_original_object ... ok | |
test types::dict::tests::test_del_item ... ok | |
test types::dict::tests::test_copy ... ok | |
test types::dict::tests::test_from_sequence ... ok | |
test types::dict::tests::test_from_sequence_err ... ok | |
test types::dict::tests::test_hashmap_into_dict ... ok | |
test types::dict::tests::test_items ... ok | |
test types::dict::tests::test_get_item_error_path ... ok | |
test types::dict::tests::test_into_iter ... ok | |
test types::dict::tests::test_get_item ... ok | |
test types::dict::tests::test_iter_bound ... ok | |
test types::dict::tests::test_iter_any ... ok | |
test types::dict::tests::test_iter_find ... ok | |
test types::dict::tests::test_iter_all ... ok | |
test types::dict::tests::test_iter_key_mutated_constant_len - should panic ... ok | |
test types::dict::tests::test_iter ... ok | |
test types::dict::tests::test_iter_key_mutated - should panic ... ok | |
test types::dict::tests::test_iter_fold ... ok | |
test types::dict::tests::test_iter_position ... ok | |
test types::dict::tests::test_iter_size_hint ... ok | |
test types::dict::tests::test_iter_try_fold ... ok | |
test types::dict::tests::test_keys ... ok | |
test types::dict::tests::test_iter_value_mutated ... ok | |
test types::dict::tests::test_new ... ok | |
test types::dict::tests::test_len ... ok | |
test types::dict::tests::test_set_item ... ok | |
test types::dict::tests::test_set_item_does_not_update_original_object ... ok | |
test types::dict::tests::test_values ... ok | |
test types::dict::tests::test_set_item_refcnt ... ok | |
test types::dict::tests::test_vec_into_dict ... ok | |
test types::dict::tests::test_slice_into_dict ... ok | |
test types::ellipsis::tests::test_dict_is_not_ellipsis ... ok | |
test types::ellipsis::tests::test_ellipsis_type_object_consistent ... ok | |
test types::float::tests::int_to_float ... ok | |
test types::ellipsis::tests::test_ellipsis_is_itself ... ok | |
test types::float::tests::test_float_value ... ok | |
test types::float::tests::to_from_f32 ... ok | |
test types::float::tests::test_pyfloat_comparisons ... ok | |
test types::float::tests::to_from_f64 ... ok | |
test types::frozenset::tests::test_frozenset_iter ... ok | |
test types::frozenset::tests::test_frozenset_builder ... ok | |
test types::frozenset::tests::test_frozenset_empty ... ok | |
test types::frozenset::tests::test_frozenset_contains ... ok | |
test types::frozenset::tests::test_frozenset_iter_size_hint ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Read of size 4 at 0x00013a0301c0 by thread T498 (mutexes: write M0): | |
#0 unicodekeys_lookup_unicode dictobject.c:1151 (libpython3.13t.dylib:arm64+0xead6c) | |
#1 _Py_dict_lookup dictobject.c:1262 (libpython3.13t.dylib:arm64+0xebabc) | |
#2 dict_setdefault_ref_lock_held dictobject.c:4282 (libpython3.13t.dylib:arm64+0xf6748) | |
#3 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#4 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#5 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#6 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#7 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#8 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#9 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#10 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#11 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#12 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#13 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#14 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#15 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#16 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#17 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 4 at 0x00013a0301c0 by thread T497 (mutexes: write M1): | |
#0 intern_common unicodeobject.c (libpython3.13t.dylib:arm64+0x1c9cac) | |
#1 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#2 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#3 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#4 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#5 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#6 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#7 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#8 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#9 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#10 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#11 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#12 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#13 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Mutex M0 (0x000107905500) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x00010790af00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T498 (tid=18692568, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T497 (tid=18692567, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:1151 in unicodekeys_lookup_unicode | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53033) | |
Atomic read of size 4 at 0x00013a03019c by thread T498 (mutexes: write M0): | |
#0 dict_setdefault_ref_lock_held dictobject.c:4315 (libpython3.13t.dylib:arm64+0xf6770) | |
#1 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#2 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#3 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#4 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#5 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#6 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#7 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#8 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#9 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#10 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#11 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#12 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#13 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#14 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#15 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Previous write of size 4 at 0x00013a03019c by thread T497 (mutexes: write M1): | |
#0 Py_SET_REFCNT object.h:406 (libpython3.13t.dylib:arm64+0x1ca75c) | |
#1 intern_common unicodeobject.c:15305 (libpython3.13t.dylib:arm64+0x1c9fd4) | |
#2 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#3 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#4 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#5 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#6 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#7 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#8 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#9 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#10 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#11 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#12 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#13 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#14 pyo3_ffi::cpython::pythonrun::Py_CompileString::h15f81e42b5109582 pythonrun.rs:140 (pyo3-ac906cf3b9e6a601:arm64+0x1002aea44) | |
Mutex M0 (0x000107905500) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Mutex M1 (0x00010790af00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (pyo3-ac906cf3b9e6a601:arm64+0x1003674f0) | |
Thread T498 (tid=18692568, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
Thread T497 (tid=18692567, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (pyo3-ac906cf3b9e6a601:arm64+0x100367728) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:4315 in dict_setdefault_ref_lock_held | |
================== | |
test types::frozenset::tests::test_frozenset_iter_bound ... ok | |
test types::frozenset::tests::test_frozenset_new_and_len ... ok | |
test types::iterator::tests::fibonacci_generator ... ok | |
test types::iterator::tests::fibonacci_generator_bound ... ok | |
test types::iterator::tests::int_not_iterable ... ok | |
test types::iterator::tests::iter_item_refcnt ... ok | |
test types::iterator::tests::python_class_iterator ... ok | |
test types::iterator::tests::length_hint_becomes_size_hint_lower_bound ... ok | |
test types::iterator::tests::python_class_not_iterator ... ok | |
test types::iterator::tests::vec_iter ... ok | |
test types::list::tests::bad_intopyobject_doesnt_cause_leaks ... ok | |
test types::iterator::tests::iter_refcnt ... ok | |
test types::list::tests::overflowing_size - should panic ... ok | |
test types::list::tests::test_append ... ok | |
test types::list::tests::test_append_refcnt ... ok | |
test types::list::tests::test_extract ... ok | |
test types::list::tests::test_as_sequence ... ok | |
test types::list::tests::test_array_into_pyobject ... ok | |
test types::list::tests::test_insert ... ok | |
test types::list::tests::test_get_item ... ok | |
test types::list::tests::test_get_slice ... ok | |
test types::list::tests::test_insert_refcnt ... ok | |
test types::list::tests::test_into_sequence ... ok | |
test types::list::tests::test_into_iter ... ok | |
test types::list::tests::test_into_iter_bound ... ok | |
test types::list::tests::test_iter_any ... ok | |
test types::list::tests::test_iter ... ok | |
test types::list::tests::test_iter_find ... ok | |
test types::list::tests::test_iter_all ... ok | |
test types::list::tests::test_iter_fold ... ok | |
test types::list::tests::test_iter_fold_out_of_bounds ... ok | |
test types::list::tests::test_iter_nth ... ok | |
test types::list::tests::test_iter_rfold ... ok | |
test types::list::tests::test_iter_position ... ok | |
test types::list::tests::test_iter_size_hint ... ok | |
test types::list::tests::test_iter_nth_back ... ok | |
test types::list::tests::test_iter_try_rfold ... ok | |
test types::list::tests::test_iter_try_fold ... ok | |
test types::list::tests::test_iter_rev ... ok | |
test types::list::tests::test_len ... ok | |
test types::list::tests::test_list_contains ... ok | |
test types::list::tests::test_list_del_slice ... ok | |
test types::list::tests::test_list_del_item ... ok | |
test types::list::tests::test_list_get_item_unchecked_sanity ... ok | |
test types::list::tests::test_list_index ... ok | |
test types::list::tests::test_list_get_item_sanity ... ok | |
test types::list::tests::test_list_get_item_invalid_index ... ok | |
test types::list::tests::test_list_set_slice ... ok | |
test types::list::tests::test_list_to_tuple ... ok | |
test types::list::tests::test_new ... ok | |
test types::list::tests::test_reverse ... ok | |
test types::list::tests::test_set_item ... ok | |
test types::list::tests::too_long_iterator - should panic ... ok | |
test types::list::tests::test_set_item_refcnt ... ok | |
test types::list::tests::test_sort ... ok | |
test types::list::tests::too_short_iterator - should panic ... ok | |
test types::mapping::tests::test_get_item ... ok | |
test types::mapping::tests::test_del_item ... ok | |
test types::mapping::tests::test_keys ... ok | |
test types::mapping::tests::test_contains ... ok | |
test types::mapping::tests::test_len ... ok | |
test types::mapping::tests::test_set_item ... ok | |
test types::mapping::tests::test_values ... ok | |
test types::mapping::tests::test_items ... ok | |
test exceptions::asyncio::tests::CancelledError ... ok | |
test types::mappingproxy::tests::mappingproxy_as_mapping ... ok | |
test types::mappingproxy::tests::get_value_from_mappingproxy_of_strings ... ok | |
test exceptions::asyncio::tests::IncompleteReadError ... ok | |
test exceptions::asyncio::tests::LimitOverrunError ... ok | |
test exceptions::asyncio::tests::QueueFull ... ok | |
test exceptions::asyncio::tests::InvalidStateError ... ok | |
test types::mappingproxy::tests::mappingproxy_values_view ... ok | |
test exceptions::asyncio::tests::TimeoutError ... ok | |
test types::mappingproxy::tests::test_btreemap_into_mappingproxy ... ok | |
test exceptions::asyncio::tests::QueueEmpty ... ok | |
test types::mappingproxy::tests::mappingproxy_items_view ... ok | |
test types::mappingproxy::tests::mappingproxy_keys_view ... ok | |
test types::mappingproxy::tests::test_btreemap_into_py ... ok | |
test types::mappingproxy::tests::test_get_item ... ok | |
test types::mappingproxy::tests::test_hashmap_into_python ... ok | |
test types::mappingproxy::tests::test_hashmap_into_mappingproxy ... ok | |
test types::mappingproxy::tests::test_items ... ok | |
test types::mappingproxy::tests::test_contains ... ok | |
test types::mappingproxy::tests::test_isempty ... ok | |
test types::mappingproxy::tests::test_keys ... ok | |
test types::mappingproxy::tests::test_new ... ok | |
test types::mappingproxy::tests::test_iter ... ok | |
test types::mappingproxy::tests::test_len ... ok | |
test types::mappingproxy::tests::test_slice_into_mappingproxy ... ok | |
test types::module::tests::module_filename ... ok | |
test types::module::tests::module_import_and_name ... ok | |
test types::none::tests::test_none_is_itself ... ok | |
test types::none::tests::test_dict_is_not_none ... ok | |
test types::none::tests::test_none_type_object_consistent ... ok | |
test types::mappingproxy::tests::test_values ... ok | |
test types::mappingproxy::tests::test_vec_into_mappingproxy ... ok | |
test types::none::tests::test_none_is_none ... ok | |
test types::mappingproxy::tests::test_set_item_refcnt ... ok | |
test types::none::tests::test_unit_into_py_is_none ... ok | |
test types::num::tests::test_partial_eq ... ok | |
test types::notimplemented::tests::test_notimplemented_is_itself ... ok | |
test types::notimplemented::tests::test_dict_is_not_notimplemented ... ok | |
test types::none::tests::test_unit_to_object_is_none ... ok | |
test types::notimplemented::tests::test_notimplemented_type_object_consistent ... ok | |
test types::sequence::tests::test_list_coercion ... ok | |
test types::sequence::tests::test_extract_tuple_to_vec ... ok | |
test types::sequence::tests::test_extract_range_to_vec ... ok | |
test types::sequence::tests::test_del_slice ... ok | |
test types::sequence::tests::test_seq_concat ... ok | |
test types::sequence::tests::test_extract_bytearray_to_vec ... ok | |
test types::sequence::tests::test_lists_coerce_to_tuples ... ok | |
test types::sequence::tests::test_seq_concat_string ... ok | |
test types::sequence::tests::test_numbers_are_not_sequences ... ok | |
test types::sequence::tests::test_seq_del_item ... ok | |
test types::sequence::tests::test_seq_contains ... ok | |
test types::sequence::tests::test_seq_count ... ok | |
test types::sequence::tests::test_seq_empty ... ok | |
test types::sequence::tests::test_seq_downcast_unchecked ... ok | |
test types::sequence::tests::test_seq_index ... ok | |
test types::sequence::tests::test_seq_get_slice ... ok | |
test types::sequence::tests::test_seq_get_item ... ok | |
test types::sequence::tests::test_seq_iter ... ok | |
test types::sequence::tests::test_seq_inplace ... ok | |
test types::sequence::tests::test_seq_is_empty ... ok | |
test types::sequence::tests::test_seq_repeat ... ok | |
test types::sequence::tests::test_seq_strings ... ok | |
test types::sequence::tests::test_strings_are_sequences ... ok | |
test types::sequence::tests::test_set_slice ... ok | |
test types::sequence::tests::test_strings_cannot_be_extracted_to_vec ... ok | |
test types::sequence::tests::test_tuple_coercion ... ok | |
test types::set::tests::test_set_clear ... ok | |
test types::set::tests::test_set_contains ... ok | |
test types::sequence::tests::test_strings_coerce_to_lists ... ok | |
test types::sequence::tests::test_seq_set_item ... ok | |
test types::set::tests::test_set_add ... ok | |
test types::set::tests::test_set_empty ... ok | |
test types::set::tests::test_set_discard ... ok | |
test types::set::tests::test_set_iter ... ok | |
test types::sequence::tests::test_seq_set_item_refcnt ... ok | |
test types::set::tests::test_set_iter_mutation - should panic ... ok | |
test types::set::tests::test_set_iter_mutation_same_len - should panic ... ok | |
test types::slice::tests::test_py_slice_indices_new ... ok | |
test types::set::tests::test_set_len ... ok | |
test types::set::tests::test_set_iter_bound ... ok | |
Exception state should not be set. | |
test types::set::tests::test_set_iter_size_hint ... ok | |
test types::set::tests::test_set_new ... ok | |
test types::string::tests::test_comparisons ... ok | |
test types::slice::tests::test_py_slice_full ... ok | |
test types::string::tests::test_debug_string ... ok | |
test types::set::tests::test_set_pop ... ok | |
test types::string::tests::test_display_string ... ok | |
test types::string::tests::test_encode_utf8_unicode ... ok | |
test types::slice::tests::test_py_slice_new ... ok | |
test types::string::tests::test_encode_utf8_surrogate ... ok | |
test types::string::tests::test_intern_string ... ok | |
test types::string::tests::test_string_data_ucs1_invalid ... ok | |
test types::string::tests::test_py_to_str_surrogate ... ok | |
test types::string::tests::test_string_data_ucs1 ... ok | |
test types::string::tests::test_py_to_str_utf8 ... ok | |
test types::string::tests::test_py_to_string_lossy ... ok | |
test types::string::tests::test_string_data_ucs4 ... ok | |
test types::string::tests::test_string_data_ucs4_invalid ... ok | |
test types::string::tests::test_string_data_ucs2 ... ok | |
test types::string::tests::test_to_cow_utf8 ... ok | |
test types::string::tests::test_to_cow_unicode ... ok | |
test types::traceback::tests::format_traceback ... ok | |
test types::string::tests::test_to_string_lossy ... ok | |
test types::tuple::tests::test_as_slice ... ok | |
test types::tuple::tests::overflowing_size - should panic ... ok | |
test types::tuple::tests::bad_intopyobject_doesnt_cause_leaks ... ok | |
test types::string::tests::test_string_data_ucs2_invalid ... ok | |
test types::tuple::tests::bad_intopyobject_doesnt_cause_leaks_2 ... ok | |
test types::string::tests::test_to_cow_surrogate ... ok | |
test types::traceback::tests::test_err_from_value ... ok | |
test types::tuple::tests::test_bound_iter ... ok | |
test types::tuple::tests::test_bound_tuple_get_item ... ok | |
test types::tuple::tests::test_into_iter ... ok | |
test types::traceback::tests::test_err_into_py ... ok | |
test types::tuple::tests::test_empty ... ok | |
test types::tuple::tests::test_iter ... ok | |
test types::tuple::tests::test_bound_iter_rev ... ok | |
test types::tuple::tests::test_new ... ok | |
test types::tuple::tests::test_iter_rev ... ok | |
test types::tuple::tests::test_into_iter_bound ... ok | |
test types::tuple::tests::test_len ... ok | |
test types::tuple::tests::test_slice ... ok | |
test types::tuple::tests::test_tuple_get_item_invalid_index ... ok | |
test types::tuple::tests::test_tuple_get_item_sanity ... ok | |
test types::tuple::tests::test_tuple_get_item_unchecked_sanity ... ok | |
test types::tuple::tests::test_tuple_index ... ok | |
test types::tuple::tests::test_tuple_into_sequence ... ok | |
test types::tuple::tests::test_tuple_lengths_up_to_12 ... ok | |
test types::tuple::tests::test_tuple_to_list ... ok | |
test types::tuple::tests::too_long_iterator - should panic ... ok | |
test types::tuple::tests::test_tuple_as_sequence ... ok | |
test types::tuple::tests::test_tuple_contains ... ok | |
test types::typeobject::tests::test_bases_bool ... ok | |
test types::tuple::tests::too_short_iterator - should panic ... ok | |
test types::typeobject::tests::test_type_names_builtin ... ok | |
test types::typeobject::tests::test_type_is_subclass ... ok | |
test types::typeobject::tests::test_bases_object ... ok | |
test types::typeobject::tests::test_type_is_subclass_of ... ok | |
test types::typeobject::tests::test_mro ... ok | |
test types::weakref::anyref::tests::pyo3_pyclass::test_weakref_get_object ... ok | |
test types::typeobject::tests::test_type_names_standard ... ok | |
test types::weakref::anyref::tests::pyo3_pyclass::test_weakref_upgrade ... ok | |
test types::typeobject::tests::test_type_names_nested ... ok | |
test types::weakref::anyref::tests::pyo3_pyclass::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::callable_proxy::pyo3_pyclass::test_weakref_get_object ... ok | |
test types::weakref::anyref::tests::pyo3_pyclass::test_weakref_upgrade_as ... ok | |
test types::weakref::proxy::tests::callable_proxy::pyo3_pyclass::test_weakref_upgrade ... ok | |
test types::weakref::proxy::tests::callable_proxy::pyo3_pyclass::test_weakref_proxy_behavior ... ok | |
test types::weakref::anyref::tests::python_class::test_weakref_get_object ... ok | |
test types::weakref::proxy::tests::callable_proxy::pyo3_pyclass::test_weakref_upgrade_as ... ok | |
test types::weakref::anyref::tests::python_class::test_weakref_upgrade_as ... ok | |
test types::weakref::anyref::tests::python_class::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::proxy::pyo3_pyclass::test_weakref_get_object ... ok | |
test types::weakref::proxy::tests::callable_proxy::python_class::test_weakref_upgrade ... ok | |
test types::weakref::anyref::tests::python_class::test_weakref_upgrade ... ok | |
test types::weakref::proxy::tests::callable_proxy::pyo3_pyclass::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::callable_proxy::python_class::test_weakref_upgrade_as ... ok | |
test types::weakref::proxy::tests::callable_proxy::python_class::test_weakref_get_object ... ok | |
test types::weakref::proxy::tests::callable_proxy::python_class::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::proxy::pyo3_pyclass::test_weakref_upgrade_as ... ok | |
test types::weakref::proxy::tests::proxy::pyo3_pyclass::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::proxy::pyo3_pyclass::test_weakref_proxy_behavior ... ok | |
test types::weakref::proxy::tests::callable_proxy::python_class::test_weakref_proxy_behavior ... ok | |
test types::weakref::proxy::tests::proxy::pyo3_pyclass::test_weakref_upgrade ... ok | |
test types::weakref::reference::tests::pyo3_pyclass::test_weakref_upgrade ... ok | |
test types::weakref::reference::tests::pyo3_pyclass::test_weakref_get_object ... ok | |
test types::weakref::proxy::tests::proxy::python_class::test_weakref_proxy_behavior ... ok | |
test types::weakref::reference::tests::pyo3_pyclass::test_weakref_upgrade_as ... ok | |
test types::weakref::proxy::tests::proxy::python_class::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::reference::tests::pyo3_pyclass::test_weakref_reference_behavior ... ok | |
test types::weakref::reference::tests::pyo3_pyclass::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::proxy::tests::proxy::python_class::test_weakref_upgrade_as ... ok | |
test version::test::test_python_version_info_parse ... ok | |
test types::weakref::proxy::tests::proxy::python_class::test_weakref_upgrade ... ok | |
test types::weakref::proxy::tests::proxy::python_class::test_weakref_get_object ... ok | |
test types::weakref::reference::tests::python_class::test_weakref_upgrade ... ok | |
test types::weakref::reference::tests::python_class::test_weakref_get_object ... ok | |
test types::weakref::reference::tests::python_class::test_weakref_upgrade_as_unchecked ... ok | |
test types::weakref::reference::tests::python_class::test_weakref_upgrade_as ... ok | |
test types::weakref::reference::tests::python_class::test_weakref_reference_behavior ... ok | |
test version::test::test_python_version_info ... ok | |
test types::mappingproxy::tests::get_value_from_mappingproxy_of_integers ... ok | |
test types::mappingproxy::tests::iter_mappingproxy_nosegv ... ok | |
test result: ok. 705 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 24.98s | |
ThreadSanitizer: reported 10 warnings | |
error: test failed, to rerun pass `--lib` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/pyo3-ac906cf3b9e6a601` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_anyhow.rs (target/debug/deps/test_anyhow-6b21909070ac8c13) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Running tests/test_append_to_inittab.rs (target/debug/deps/test_append_to_inittab-51f30fb19e125d26) | |
test_append_to_inittab-51f30fb19e125d26(53044,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
<frozen importlib._bootstrap>:488: RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'module_fn_with_functions', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0. | |
test test_module_append_to_inittab ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.18s | |
Running tests/test_arithmetics.rs (target/debug/deps/test_arithmetics-f961e46d30669965) | |
test_arithmetics-f961e46d30669965(53045,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 15 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53045) | |
Read of size 8 at 0x000103e93f88 by thread T10 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 compiler_class_body compile.c:2605 (libpython3.13t.dylib:arm64+0x285a74) | |
#10 compiler_visit_stmt compile.c:4046 (libpython3.13t.dylib:arm64+0x27a910) | |
#11 compiler_body compile.c:1677 (libpython3.13t.dylib:arm64+0x2784c4) | |
#12 compiler_codegen compile.c:1688 (libpython3.13t.dylib:arm64+0x275b6c) | |
#13 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27482c) | |
#14 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#15 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#16 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000ac8cc) | |
Previous write of size 8 at 0x000103e93f88 by thread T5 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 compiler_class_body compile.c:2605 (libpython3.13t.dylib:arm64+0x285a74) | |
#10 compiler_visit_stmt compile.c:4046 (libpython3.13t.dylib:arm64+0x27a910) | |
#11 compiler_body compile.c:1677 (libpython3.13t.dylib:arm64+0x2784c4) | |
#12 compiler_codegen compile.c:1688 (libpython3.13t.dylib:arm64+0x275b6c) | |
#13 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27482c) | |
#14 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#15 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#16 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000ac8cc) | |
Location is global '_PyRuntime' at 0x000103e8da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107703900) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000f2314) | |
Mutex M1 (0x000107703cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000f2314) | |
Thread T10 (tid=18693169, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000f254c) | |
Thread T5 (tid=18693164, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_arithmetics-f961e46d30669965:arm64+0x1000f254c) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test indexable ... ok | |
test return_not_implemented::equality ... ok | |
test lhs_fellback_to_rhs ... ok | |
test inplace_operations ... ok | |
test binary_arithmetic ... ok | |
test rich_comparisons_python_3_type_error ... ok | |
test unary_arithmetic ... ok | |
test rhs_arithmetic ... ok | |
test rich_comparisons ... ok | |
test return_not_implemented::arith ... ok | |
test return_not_implemented::ordering ... ok | |
test return_not_implemented::bitwise ... ok | |
test return_not_implemented::inplace_bitwise ... ok | |
test return_not_implemented::reverse_arith ... ok | |
test return_not_implemented::inplace_arith ... ok | |
test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.45s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_arithmetics` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_arithmetics-f961e46d30669965` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_buffer.rs (target/debug/deps/test_buffer-f53788bb7e4a0c75) | |
test_buffer-f53788bb7e4a0c75(53048,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test test_get_buffer_errors ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_buffer_protocol.rs (target/debug/deps/test_buffer_protocol-0ffe5fd7f5bdce86) | |
test_buffer_protocol-0ffe5fd7f5bdce86(53049,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 2 tests | |
test test_buffer ... ok | |
test test_buffer_referenced ... ok | |
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_bytes.rs (target/debug/deps/test_bytes-284e202e768e72e9) | |
test_bytes-284e202e768e72e9(53050,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 4 tests | |
test test_bytearray_vec_conversion ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53050) | |
Read of size 8 at 0x00010218bf88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_bytes-284e202e768e72e9:arm64+0x100049c00) | |
Previous write of size 8 at 0x00010218bf88 by thread T1 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_bytes-284e202e768e72e9:arm64+0x100049c00) | |
Location is global '_PyRuntime' at 0x000102185a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000105c03d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_bytes-284e202e768e72e9:arm64+0x100085128) | |
Mutex M1 (0x000105c001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_bytes-284e202e768e72e9:arm64+0x100085128) | |
Thread T4 (tid=18693216, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_bytes-284e202e768e72e9:arm64+0x100085360) | |
Thread T1 (tid=18693213, finished) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_bytes-284e202e768e72e9:arm64+0x100085360) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_pybytes_bytes_conversion ... ok | |
test test_pybytes_vec_conversion ... ok | |
test test_py_as_bytes ... ok | |
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_bytes` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_bytes-284e202e768e72e9` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_class_attributes.rs (target/debug/deps/test_class_attributes-56a780af1ab7ff82) | |
test_class_attributes-56a780af1ab7ff82(53053,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 13 tests | |
test class_attributes_are_immutable ... ignored | |
test test_rename_all_screaming_kebab_case ... ok | |
test test_rename_all_camel_case ... ok | |
test test_rename_all_pascal_case ... ok | |
test test_rename_all_kebab_case ... ok | |
test test_rename_all_lowercase ... ok | |
test recursive_class_attributes ... ok | |
test test_rename_all_uppercase ... ok | |
test test_rename_all_screaming_snake_case ... ok | |
test test_rename_all_snake_case ... ok | |
test test_renaming_all_struct_fields ... ok | |
test class_attributes ... ok | |
test test_fallible_class_attribute ... ok | |
test result: ok. 12 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.21s | |
Running tests/test_class_basics.rs (target/debug/deps/test_class_basics-fa7dbd9ae63fe255) | |
test_class_basics-fa7dbd9ae63fe255(53054,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 22 tests | |
test empty_class_in_module ... ignored | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53054) | |
Read of size 8 at 0x0001015b7f88 by thread T3 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x10008ae68) | |
Previous write of size 8 at 0x0001015b7f88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x10008ae68) | |
Location is global '_PyRuntime' at 0x0001015b1a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000104f00040) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x1000d25b8) | |
Mutex M1 (0x000104f03d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x1000d25b8) | |
Thread T3 (tid=18693250, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x1000d27f0) | |
Thread T4 (tid=18693251, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_basics-fa7dbd9ae63fe255:arm64+0x1000d27f0) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test class_with_hash ... ok | |
test empty_class ... ok | |
test access_dunder_dict ... ok | |
test access_frozen_class_without_gil ... ok | |
test class_with_object_field ... ok | |
test inherited_dict ... ok | |
test class_with_docstr ... ok | |
test dunder_dict_support ... ok | |
test test_tuple_struct_class ... ok | |
test test_unsendable_dict ... ok | |
test test_pymethods_from_py_with ... ok | |
test unit_class ... ok | |
test test_raw_idents ... ok | |
test panic_unsendable_child - should panic ... ok | |
test keyword_names ... ok | |
test panic_unsendable_base - should panic ... ok | |
test custom_names ... ok | |
test inherited_weakref ... ok | |
test weakref_dunder_dict_support ... ok | |
test test_unsendable_dict_with_weakref ... ok | |
test weakref_support ... ok | |
test result: ok. 21 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.37s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_class_basics` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_class_basics-fa7dbd9ae63fe255` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_class_comparisons.rs (target/debug/deps/test_class_comparisons-5d14a046672dc35b) | |
test_class_comparisons-5d14a046672dc35b(53057,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 8 tests | |
test test_enum_ord_comparable_opt_in_only ... ok | |
test test_enum_eq_incomparable ... ok | |
test test_struct_numeric_ord_comparable ... ok | |
test test_enum_eq_enum ... ok | |
test test_simple_enum_ord_comparable ... ok | |
test test_struct_custom_ord_comparable ... ok | |
test test_struct_string_ord_comparable ... ok | |
test test_complex_enum_ord_comparable ... ok | |
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s | |
Running tests/test_class_conversion.rs (target/debug/deps/test_class_conversion-f0f2fafd791cd4fb) | |
test_class_conversion-f0f2fafd791cd4fb(53058,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 6 tests | |
test test_pycell_deref ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53058) | |
Read of size 8 at 0x00010565bf88 by thread T3 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x1000590f4) | |
Previous write of size 8 at 0x00010565bf88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x1000590f4) | |
Location is global '_PyRuntime' at 0x000105655a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109100000) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x10009c0b8) | |
Mutex M1 (0x000109102dc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x10009c0b8) | |
Thread T3 (tid=18693299, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x10009c2f0) | |
Thread T4 (tid=18693300, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_conversion-f0f2fafd791cd4fb:arm64+0x10009c2f0) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_pyref_as_base ... ok | |
test test_polymorphic_container_does_not_accept_other_types ... ok | |
test test_cloneable_pyclass ... ok | |
test test_polymorphic_container_stores_sub_class ... ok | |
test test_polymorphic_container_stores_base_class ... ok | |
test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_class_conversion` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_class_conversion-f0f2fafd791cd4fb` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_class_formatting.rs (target/debug/deps/test_class_formatting-9504eafafd6b48d7) | |
test_class_formatting-9504eafafd6b48d7(53061,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 7 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53061) | |
Read of size 8 at 0x000105753f88 by thread T5 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x10006e544) | |
Previous write of size 8 at 0x000105753f88 by thread T7 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x10006e544) | |
Location is global '_PyRuntime' at 0x00010574da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109303cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x1000b37d0) | |
Mutex M1 (0x000109303b40) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x1000b37d0) | |
Thread T5 (tid=18693325, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x1000b3a08) | |
Thread T7 (tid=18693327, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_formatting-9504eafafd6b48d7:arm64+0x1000b3a08) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_str_representation_by_position ... ok | |
test test_custom_struct_custom_str ... ok | |
test test_mixed_and_repeated_str_formats ... ok | |
test test_struct_str ... ok | |
test test_raw_identifier_struct_custom_str ... ok | |
test test_enum_class_fmt ... ok | |
test test_custom_complex_enum_str ... ok | |
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_class_formatting` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_class_formatting-9504eafafd6b48d7` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_class_new.rs (target/debug/deps/test_class_new-bef47a46618e92af) | |
test_class_new-bef47a46618e92af(53064,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 11 tests | |
test tuple_class_with_new ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53064) | |
Read of size 8 at 0x000103503f88 by thread T5 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 compiler_function compile.c:2431 (libpython3.13t.dylib:arm64+0x282188) | |
#10 compiler_visit_stmt compile.c (libpython3.13t.dylib:arm64+0x279310) | |
#11 compiler_body compile.c:1677 (libpython3.13t.dylib:arm64+0x2784c4) | |
#12 compiler_class_body compile.c:2542 (libpython3.13t.dylib:arm64+0x285928) | |
#13 compiler_visit_stmt compile.c:4046 (libpython3.13t.dylib:arm64+0x27a910) | |
#14 compiler_body compile.c:1677 (libpython3.13t.dylib:arm64+0x2784c4) | |
#15 compiler_codegen compile.c:1688 (libpython3.13t.dylib:arm64+0x275b6c) | |
#16 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27482c) | |
#17 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#18 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#19 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_new-bef47a46618e92af:arm64+0x100066844) | |
Previous write of size 8 at 0x000103503f88 by thread T6 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_class_new-bef47a46618e92af:arm64+0x100066844) | |
Location is global '_PyRuntime' at 0x0001034fda80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000106e03cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_new-bef47a46618e92af:arm64+0x1000a9c74) | |
Mutex M1 (0x000106e03c00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_class_new-bef47a46618e92af:arm64+0x1000a9c74) | |
Thread T5 (tid=18693356, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_new-bef47a46618e92af:arm64+0x1000a9eac) | |
Thread T6 (tid=18693357, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_class_new-bef47a46618e92af:arm64+0x1000a9eac) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test new_with_one_arg ... ok | |
test unit_class_with_new ... ok | |
test new_with_custom_error ... ok | |
test test_new_existing ... ok | |
test test_new_returns_py ... ok | |
test test_new_returns_bound ... ok | |
test new_with_two_args ... ok | |
test subclass_new ... ok | |
test empty_class_with_new ... ok | |
test test_new_class_method ... ok | |
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_class_new` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_class_new-bef47a46618e92af` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_compile_error.rs (target/debug/deps/test_compile_error-17fb752b3e0d1394) | |
running 1 test | |
Compiling pyo3-tests v0.0.0 (/Users/goldbaum/Documents/pyo3/target/tests/trybuild/pyo3) | |
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s | |
test tests/ui/invalid_property_args.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: getter function can only have one argument (of type pyo3::Python) | |
--> tests/ui/invalid_property_args.rs:9:56 | |
| | |
9 | fn getter_with_arg(&self, _py: Python<'_>, _index: u32) {} | |
| ^^^ | |
error: setter function expected to have one argument | |
--> tests/ui/invalid_property_args.rs:18:8 | |
| | |
18 | fn setter_with_no_arg(&mut self, _py: Python<'_>) {} | |
| ^^^^^^^^^^^^^^^^^^ | |
error: setter function can have at most two arguments ([pyo3::Python,] and value) | |
--> tests/ui/invalid_property_args.rs:24:79 | |
| | |
24 | fn setter_with_too_many_args(&mut self, _py: Python<'_>, _foo: u32, _bar: u32) {} | |
| ^^^ | |
error: `get` and `set` with tuple struct fields require `name` | |
--> tests/ui/invalid_property_args.rs:28:50 | |
| | |
28 | struct TupleGetterSetterNoName(#[pyo3(get, set)] i32); | |
| ^^^ | |
error: `get` may only be specified once | |
--> tests/ui/invalid_property_args.rs:31:32 | |
| | |
31 | struct MultipleGet(#[pyo3(get, get)] i32); | |
| ^^^ | |
error: `set` may only be specified once | |
--> tests/ui/invalid_property_args.rs:34:32 | |
| | |
34 | struct MultipleSet(#[pyo3(set, set)] i32); | |
| ^^^ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_property_args.rs:37:42 | |
| | |
37 | struct MultipleName(#[pyo3(name = "foo", name = "bar")] i32); | |
| ^^^^ | |
error: `name` is useless without `get` or `set` | |
--> tests/ui/invalid_property_args.rs:40:33 | |
| | |
40 | struct NameWithoutGetSet(#[pyo3(name = "value")] i32); | |
| ^^^^^^^^^^^^^^ | |
error[E0277]: `PhantomData<i32>` cannot be converted to a Python object | |
--> tests/ui/invalid_property_args.rs:45:12 | |
| | |
45 | value: ::std::marker::PhantomData<i32>, | |
| ^ required by `#[pyo3(get)]` to create a readable property from a field of type `PhantomData<i32>` | |
| | |
= help: the trait `IntoPyObject<'_>` is not implemented for `PhantomData<i32>` | |
= note: implement `IntoPyObject` for `&PhantomData<i32>` or `IntoPyObject + Clone` for `PhantomData<i32>` to define the conversion | |
= help: the following other types implement trait `IntoPyObject<'py>`: | |
&&'a T | |
&&OsStr | |
&&Path | |
&&str | |
&'a (T0, T1) | |
&'a (T0, T1, T2) | |
&'a (T0, T1, T2, T3) | |
&'a (T0, T1, T2, T3, T4) | |
and $N others | |
= note: required for `PhantomData<i32>` to implement `for<'py> PyO3GetField<'py>` | |
note: required by a bound in `PyClassGetterGenerator::<ClassT, FieldT, Offset, false, false, false, false, false>::generate` | |
--> src/impl_/pyclass.rs | |
| | |
| pub const fn generate(&self, _name: &'static CStr, _doc: &'static CStr) -> PyMethodDefType | |
| -------- required by a bound in this associated function | |
... | |
| for<'py> FieldT: PyO3GetField<'py>, | |
| ^^^^^^^^^^^^^^^^^ required by this bound in `PyClassGetterGenerator::<ClassT, FieldT, Offset, false, false, false, false, false>::generate` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: getter function can only have one argument (of type pyo3::Python) | |
--> tests/ui/invalid_property_args.rs:9:56 | |
| | |
9 | fn getter_with_arg(&self, _py: Python<'_>, _index: u32) {} | |
| ^^^ | |
error: setter function expected to have one argument | |
--> tests/ui/invalid_property_args.rs:18:8 | |
| | |
18 | fn setter_with_no_arg(&mut self, _py: Python<'_>) {} | |
| ^^^^^^^^^^^^^^^^^^ | |
error: setter function can have at most two arguments ([pyo3::Python,] and value) | |
--> tests/ui/invalid_property_args.rs:24:79 | |
| | |
24 | fn setter_with_too_many_args(&mut self, _py: Python<'_>, _foo: u32, _bar: u32) {} | |
| ^^^ | |
error: `get` and `set` with tuple struct fields require `name` | |
--> tests/ui/invalid_property_args.rs:28:50 | |
| | |
28 | struct TupleGetterSetterNoName(#[pyo3(get, set)] i32); | |
| ^^^ | |
error: `get` may only be specified once | |
--> tests/ui/invalid_property_args.rs:31:32 | |
| | |
31 | struct MultipleGet(#[pyo3(get, get)] i32); | |
| ^^^ | |
error: `set` may only be specified once | |
--> tests/ui/invalid_property_args.rs:34:32 | |
| | |
34 | struct MultipleSet(#[pyo3(set, set)] i32); | |
| ^^^ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_property_args.rs:37:42 | |
| | |
37 | struct MultipleName(#[pyo3(name = "foo", name = "bar")] i32); | |
| ^^^^^^^^^^^^ | |
error: `name` is useless without `get` or `set` | |
--> tests/ui/invalid_property_args.rs:40:33 | |
| | |
40 | struct NameWithoutGetSet(#[pyo3(name = "value")] i32); | |
| ^^^^^^^^^^^^^^ | |
error[E0277]: `PhantomData<i32>` cannot be converted to a Python object | |
--> tests/ui/invalid_property_args.rs:45:12 | |
| | |
45 | value: ::std::marker::PhantomData<i32>, | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by `#[pyo3(get)]` to create a readable property from a field of type `PhantomData<i32>` | |
| | |
= help: the trait `IntoPyObject<'_>` is not implemented for `PhantomData<i32>` | |
= note: implement `IntoPyObject` for `&PhantomData<i32>` or `IntoPyObject + Clone` for `PhantomData<i32>` to define the conversion | |
= help: the following other types implement trait `IntoPyObject<'py>`: | |
&&'a T | |
&&OsStr | |
&&Path | |
&&str | |
&'a (T0, T1) | |
&'a (T0, T1, T2) | |
&'a (T0, T1, T2, T3) | |
&'a (T0, T1, T2, T3, T4) | |
and $N others | |
= note: required for `PhantomData<i32>` to implement `for<'py> PyO3GetField<'py>` | |
note: required by a bound in `PyClassGetterGenerator::<ClassT, FieldT, Offset, false, false, false, false, false>::generate` | |
--> src/impl_/pyclass.rs | |
| | |
| pub const fn generate(&self, _name: &'static CStr, _doc: &'static CStr) -> PyMethodDefType | |
| -------- required by a bound in this associated function | |
... | |
| for<'py> FieldT: PyO3GetField<'py>, | |
| ^^^^^^^^^^^^^^^^^ required by this bound in `PyClassGetterGenerator::<ClassT, FieldT, Offset, false, false, false, false, false>::generate` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_proto_pymethods.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pyclass_args.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: expected one of: `crate`, `dict`, `eq`, `eq_int`, `extends`, `freelist`, `frozen`, `get_all`, `hash`, `mapping`, `module`, `name`, `ord`, `rename_all`, `sequence`, `set_all`, `str`, `subclass`, `unsendable`, `weakref` | |
--> tests/ui/invalid_pyclass_args.rs:4:11 | |
| | |
4 | #[pyclass(extend=pyo3::types::PyDict)] | |
| ^^^^^^ | |
error: expected identifier | |
--> tests/ui/invalid_pyclass_args.rs:7:21 | |
| | |
7 | #[pyclass(extends = "PyDict")] | |
| ^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:10:18 | |
| | |
10 | #[pyclass(name = m::MyClass)] | |
| ^ | |
error: expected a single identifier in double quotes | |
--> tests/ui/invalid_pyclass_args.rs:13:18 | |
| | |
13 | #[pyclass(name = "Custom Name")] | |
| ^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:16:18 | |
| | |
16 | #[pyclass(name = CustomName)] | |
| ^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:19:24 | |
| | |
19 | #[pyclass(rename_all = camelCase)] | |
| ^^^^^^^^^ | |
error: expected a valid renaming rule, possible values are: "camelCase", "kebab-case", "lowercase", "PascalCase", "SCREAMING-KEBAB-CASE", "SCREAMING_SNAKE_CASE", "snake_case", "UPPERCASE" | |
--> tests/ui/invalid_pyclass_args.rs:22:24 | |
| | |
22 | #[pyclass(rename_all = "Camel-Case")] | |
| ^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:25:20 | |
| | |
25 | #[pyclass(module = my_module)] | |
| ^^^^^^^^^ | |
error: expected one of: `crate`, `dict`, `eq`, `eq_int`, `extends`, `freelist`, `frozen`, `get_all`, `hash`, `mapping`, `module`, `name`, `ord`, `rename_all`, `sequence`, `set_all`, `str`, `subclass`, `unsendable`, `weakref` | |
--> tests/ui/invalid_pyclass_args.rs:28:11 | |
| | |
28 | #[pyclass(weakrev)] | |
| ^^^^^^^ | |
error: a `#[pyclass]` cannot be both a `mapping` and a `sequence` | |
--> tests/ui/invalid_pyclass_args.rs:32:8 | |
| | |
32 | struct CannotBeMappingAndSequence {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `eq_int` can only be used on simple enums. | |
--> tests/ui/invalid_pyclass_args.rs:53:11 | |
| | |
53 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: The `hash` option requires the `frozen` option. | |
--> tests/ui/invalid_pyclass_args.rs:60:11 | |
| | |
60 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_args.rs:60:11 | |
| | |
60 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `ord` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_args.rs:75:11 | |
| | |
75 | #[pyclass(ord)] | |
| ^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:82:12 | |
| | |
82 | #[pyo3(foo)] | |
| ^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:83:12 | |
| | |
83 | #[pyo3(blah)] | |
| ^^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:85:12 | |
| | |
85 | #[pyo3(pop)] | |
| ^^^ | |
error: invalid format string: expected `}` but string was terminated | |
--> tests/ui/invalid_pyclass_args.rs:105:19 | |
| | |
105 | #[pyclass(str = "{")] | |
| -^ expected `}` in format string | |
| | | |
| because of this opening brace | |
| | |
= note: if you intended to print `{`, you can escape it using `{{` | |
error: invalid format string: expected `}`, found `$` | |
--> tests/ui/invalid_pyclass_args.rs:109:19 | |
| | |
109 | #[pyclass(str = "{$}")] | |
| -^ expected `}` in format string | |
| | | |
| because of this opening brace | |
| | |
= note: if you intended to print `{`, you can escape it using `{{` | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:133:31 | |
| | |
133 | #[pyclass(name = "aaa", str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:139:31 | |
| | |
139 | #[pyclass(name = "aaa", str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:144:17 | |
| | |
144 | #[pyclass(str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:150:54 | |
| | |
150 | #[pyclass(rename_all = "SCREAMING_SNAKE_CASE", str = "{a_a}, {b_b}, {c_d_e}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^ | |
error: No member found, you must provide a named or positionally specified member. | |
--> tests/ui/invalid_pyclass_args.rs:157:17 | |
| | |
157 | #[pyclass(str = "{:?}")] | |
| ^^^^^^ | |
error: No member found, you must provide a named or positionally specified member. | |
--> tests/ui/invalid_pyclass_args.rs:164:17 | |
| | |
164 | #[pyclass(str = "{}")] | |
| ^^^^ | |
error: The format string syntax cannot be used with enums | |
--> tests/ui/invalid_pyclass_args.rs:171:21 | |
| | |
171 | #[pyclass(eq, str = "Stuff...")] | |
| ^^^^^^^^^^ | |
error[E0592]: duplicate definitions with name `__pymethod___richcmp____` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___richcmp____` | |
... | |
41 | #[pymethods] | |
| ------------ other definition for `__pymethod___richcmp____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0592]: duplicate definitions with name `__pymethod___hash____` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___hash____` | |
... | |
68 | #[pymethods] | |
| ------------ other definition for `__pymethod___hash____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0592]: duplicate definitions with name `__pymethod___str____` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___str____` | |
... | |
98 | #[pymethods] | |
| ------------ other definition for `__pymethod___str____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0369]: binary operation `==` cannot be applied to type `&EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:34:11 | |
| | |
34 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:35:1 | |
| | |
35 | struct EqOptRequiresEq {} | |
| ^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `EqOptRequiresEq` with `#[derive(PartialEq)]` | |
| | |
35 + #[derive(PartialEq)] | |
36 | struct EqOptRequiresEq {} | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:34:11 | |
| | |
34 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:35:1 | |
| | |
35 | struct EqOptRequiresEq {} | |
| ^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `EqOptRequiresEq` with `#[derive(PartialEq)]` | |
| | |
35 + #[derive(PartialEq)] | |
36 | struct EqOptRequiresEq {} | |
| | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ multiple `__pymethod___richcmp____` found | |
| | |
note: candidate #1 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___richcmp____` found | |
| | |
note: candidate #1 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0277]: the trait bound `HashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_args.rs:56:23 | |
| | |
56 | #[pyclass(frozen, eq, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `HashOptRequiresHash` | |
| | |
help: consider annotating `HashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
58 + #[derive(Hash)] | |
59 | struct HashOptRequiresHash; | |
| | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple `__pymethod___hash____` found | |
| | |
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___hash____` found | |
| | |
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ multiple `__pymethod___str____` found | |
| | |
note: candidate #1 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___str____` found | |
| | |
note: candidate #1 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0609]: no field `aaaa` on type `&Point` | |
--> tests/ui/invalid_pyclass_args.rs:113:17 | |
| | |
113 | #[pyclass(str = "X: {aaaa}, Y: {y}, Z: {z}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field | |
| | |
= note: available fields are: `x`, `y`, `z` | |
error[E0609]: no field `zzz` on type `&Point2` | |
--> tests/ui/invalid_pyclass_args.rs:121:17 | |
| | |
121 | #[pyclass(str = "X: {x}, Y: {y}}}, Z: {zzz}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown field | |
| | |
= note: available fields are: `x`, `y`, `z` | |
error[E0609]: no field `162543` on type `&Coord3` | |
--> tests/ui/invalid_pyclass_args.rs:129:17 | |
| | |
129 | #[pyclass(str = "{0}, {162543}, {2}")] | |
| ^^^^^^^^^^^^^^^^^^^^ unknown field | |
| | |
= note: available fields are: `0`, `1`, `2` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: expected one of: `crate`, `dict`, `eq`, `eq_int`, `extends`, `freelist`, `frozen`, `get_all`, `hash`, `mapping`, `module`, `name`, `ord`, `rename_all`, `sequence`, `set_all`, `str`, `subclass`, `unsendable`, `weakref` | |
--> tests/ui/invalid_pyclass_args.rs:4:11 | |
| | |
4 | #[pyclass(extend=pyo3::types::PyDict)] | |
| ^^^^^^ | |
error: expected identifier | |
--> tests/ui/invalid_pyclass_args.rs:7:21 | |
| | |
7 | #[pyclass(extends = "PyDict")] | |
| ^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:10:18 | |
| | |
10 | #[pyclass(name = m::MyClass)] | |
| ^ | |
error: expected a single identifier in double quotes | |
--> tests/ui/invalid_pyclass_args.rs:13:18 | |
| | |
13 | #[pyclass(name = "Custom Name")] | |
| ^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:16:18 | |
| | |
16 | #[pyclass(name = CustomName)] | |
| ^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:19:24 | |
| | |
19 | #[pyclass(rename_all = camelCase)] | |
| ^^^^^^^^^ | |
error: expected a valid renaming rule, possible values are: "camelCase", "kebab-case", "lowercase", "PascalCase", "SCREAMING-KEBAB-CASE", "SCREAMING_SNAKE_CASE", "snake_case", "UPPERCASE" | |
--> tests/ui/invalid_pyclass_args.rs:22:24 | |
| | |
22 | #[pyclass(rename_all = "Camel-Case")] | |
| ^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_pyclass_args.rs:25:20 | |
| | |
25 | #[pyclass(module = my_module)] | |
| ^^^^^^^^^ | |
error: expected one of: `crate`, `dict`, `eq`, `eq_int`, `extends`, `freelist`, `frozen`, `get_all`, `hash`, `mapping`, `module`, `name`, `ord`, `rename_all`, `sequence`, `set_all`, `str`, `subclass`, `unsendable`, `weakref` | |
--> tests/ui/invalid_pyclass_args.rs:28:11 | |
| | |
28 | #[pyclass(weakrev)] | |
| ^^^^^^^ | |
error: a `#[pyclass]` cannot be both a `mapping` and a `sequence` | |
--> tests/ui/invalid_pyclass_args.rs:32:8 | |
| | |
32 | struct CannotBeMappingAndSequence {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `eq_int` can only be used on simple enums. | |
--> tests/ui/invalid_pyclass_args.rs:53:11 | |
| | |
53 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: The `hash` option requires the `frozen` option. | |
--> tests/ui/invalid_pyclass_args.rs:60:11 | |
| | |
60 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_args.rs:60:11 | |
| | |
60 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `ord` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_args.rs:75:11 | |
| | |
75 | #[pyclass(ord)] | |
| ^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:82:12 | |
| | |
82 | #[pyo3(foo)] | |
| ^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:83:12 | |
| | |
83 | #[pyo3(blah)] | |
| ^^^^ | |
error: expected one of: `get`, `set`, `name` | |
--> tests/ui/invalid_pyclass_args.rs:85:12 | |
| | |
85 | #[pyo3(pop)] | |
| ^^^ | |
error: invalid format string: expected `}` but string was terminated | |
--> tests/ui/invalid_pyclass_args.rs:105:19 | |
| | |
105 | #[pyclass(str = "{")] | |
| -^ expected `}` in format string | |
| | | |
| because of this opening brace | |
| | |
= note: if you intended to print `{`, you can escape it using `{{` | |
error: invalid format string: expected `}`, found `$` | |
--> tests/ui/invalid_pyclass_args.rs:109:19 | |
| | |
109 | #[pyclass(str = "{$}")] | |
| -^ expected `}` in format string | |
| | | |
| because of this opening brace | |
| | |
= note: if you intended to print `{`, you can escape it using `{{` | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:133:1 | |
| | |
133 | #[pyclass(name = "aaa", str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:139:1 | |
| | |
139 | #[pyclass(name = "aaa", str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:144:1 | |
| | |
144 | #[pyclass(str = "unsafe: {unsafe_variable}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: The format string syntax is incompatible with any renaming via `name` or `rename_all` | |
--> tests/ui/invalid_pyclass_args.rs:150:1 | |
| | |
150 | #[pyclass(rename_all = "SCREAMING_SNAKE_CASE", str = "{a_a}, {b_b}, {c_d_e}")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: No member found, you must provide a named or positionally specified member. | |
--> tests/ui/invalid_pyclass_args.rs:157:19 | |
| | |
157 | #[pyclass(str = "{:?}")] | |
| ^ | |
error: No member found, you must provide a named or positionally specified member. | |
--> tests/ui/invalid_pyclass_args.rs:164:19 | |
| | |
164 | #[pyclass(str = "{}")] | |
| ^ | |
error: The format string syntax cannot be used with enums | |
--> tests/ui/invalid_pyclass_args.rs:171:1 | |
| | |
171 | #[pyclass(eq, str = "Stuff...")] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0592]: duplicate definitions with name `__pymethod___richcmp____` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___richcmp____` | |
... | |
41 | #[pymethods] | |
| ------------ other definition for `__pymethod___richcmp____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0592]: duplicate definitions with name `__pymethod___hash____` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___hash____` | |
... | |
68 | #[pymethods] | |
| ------------ other definition for `__pymethod___hash____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0592]: duplicate definitions with name `__pymethod___str____` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ duplicate definitions for `__pymethod___str____` | |
... | |
98 | #[pymethods] | |
| ------------ other definition for `__pymethod___str____` | |
| | |
= note: this error originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0369]: binary operation `==` cannot be applied to type `&EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:34:11 | |
| | |
34 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:35:1 | |
| | |
35 | struct EqOptRequiresEq {} | |
| ^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `EqOptRequiresEq` with `#[derive(PartialEq)]` | |
| | |
35 + #[derive(PartialEq)] | |
36 | struct EqOptRequiresEq {} | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:34:11 | |
| | |
34 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `EqOptRequiresEq` | |
--> tests/ui/invalid_pyclass_args.rs:35:1 | |
| | |
35 | struct EqOptRequiresEq {} | |
| ^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `EqOptRequiresEq` with `#[derive(PartialEq)]` | |
| | |
35 + #[derive(PartialEq)] | |
36 | struct EqOptRequiresEq {} | |
| | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ multiple `__pymethod___richcmp____` found | |
| | |
note: candidate #1 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___richcmp____` found | |
| | |
note: candidate #1 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:37:1 | |
| | |
37 | #[pyclass(eq)] | |
| ^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `EqOptAndManualRichCmp` | |
--> tests/ui/invalid_pyclass_args.rs:41:1 | |
| | |
41 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0277]: the trait bound `HashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_args.rs:56:23 | |
| | |
56 | #[pyclass(frozen, eq, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `HashOptRequiresHash` | |
| | |
help: consider annotating `HashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
58 + #[derive(Hash)] | |
59 | struct HashOptRequiresHash; | |
| | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple `__pymethod___hash____` found | |
| | |
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___hash____` found | |
| | |
note: candidate #1 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:64:1 | |
| | |
64 | #[pyclass(frozen, eq, hash)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `HashOptAndManualHash` | |
--> tests/ui/invalid_pyclass_args.rs:68:1 | |
| | |
68 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ multiple `__pymethod___str____` found | |
| | |
note: candidate #1 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pyclass` which comes from the expansion of the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0034]: multiple applicable items in scope | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ multiple `__pymethod___str____` found | |
| | |
note: candidate #1 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:89:1 | |
| | |
89 | #[pyclass(str)] | |
| ^^^^^^^^^^^^^^^ | |
note: candidate #2 is defined in an impl for the type `StrOptAndManualStr` | |
--> tests/ui/invalid_pyclass_args.rs:98:1 | |
| | |
98 | #[pymethods] | |
| ^^^^^^^^^^^^ | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0609]: no field `aaaa` on type `&Point` | |
--> tests/ui/invalid_pyclass_args.rs:113:22 | |
| | |
113 | #[pyclass(str = "X: {aaaa}, Y: {y}, Z: {z}")] | |
| ^^^^ unknown field | |
| | |
= note: available fields are: `x`, `y`, `z` | |
error[E0609]: no field `zzz` on type `&Point2` | |
--> tests/ui/invalid_pyclass_args.rs:121:40 | |
| | |
121 | #[pyclass(str = "X: {x}, Y: {y}}}, Z: {zzz}")] | |
| ^^^ unknown field | |
| | |
= note: available fields are: `x`, `y`, `z` | |
error[E0609]: no field `162543` on type `&Coord3` | |
--> tests/ui/invalid_pyclass_args.rs:129:24 | |
| | |
129 | #[pyclass(str = "{0}, {162543}, {2}")] | |
| ^^^^^^ unknown field | |
| | |
= note: available fields are: `0`, `1`, `2` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pyclass_enum.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: enums can't be inherited by other classes | |
--> tests/ui/invalid_pyclass_enum.rs:3:11 | |
| | |
3 | #[pyclass(subclass)] | |
| ^^^^^^^^ | |
error: enums can't extend from other classes | |
--> tests/ui/invalid_pyclass_enum.rs:9:11 | |
| | |
9 | #[pyclass(extends = PyList)] | |
| ^^^^^^^ | |
error: #[pyclass] can't be used on enums without any variants | |
--> tests/ui/invalid_pyclass_enum.rs:16:18 | |
| | |
16 | enum NoEmptyEnum {} | |
| ^^ | |
error: Unit variant `UnitVariant` is not yet supported in a complex enum | |
= help: change to an empty tuple variant instead: `UnitVariant()` | |
= note: the enum is complex because of non-unit variant `StructVariant` | |
--> tests/ui/invalid_pyclass_enum.rs:21:5 | |
| | |
21 | UnitVariant, | |
| ^^^^^^^^^^^ | |
error: `constructor` can't be used on a simple enum variant | |
--> tests/ui/invalid_pyclass_enum.rs:26:12 | |
| | |
26 | #[pyo3(constructor = (a, b))] | |
| ^^^^^^^^^^^ | |
error: The `eq_int` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:43:11 | |
| | |
43 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: `eq_int` can only be used on simple enums. | |
--> tests/ui/invalid_pyclass_enum.rs:49:11 | |
| | |
49 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: The `hash` option requires the `frozen` option. | |
--> tests/ui/invalid_pyclass_enum.rs:69:11 | |
| | |
69 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:69:11 | |
| | |
69 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:76:11 | |
| | |
76 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `ord` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:83:11 | |
| | |
83 | #[pyclass(ord)] | |
| ^^^ | |
error: #[pyclass] can't be used on enums without any variants - all variants of enum `AllEnumVariantsDisabled` have been configured out by cfg attributes | |
--> tests/ui/invalid_pyclass_enum.rs:98:6 | |
| | |
98 | enum AllEnumVariantsDisabled { | |
| ^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0369]: binary operation `==` cannot be applied to type `&SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:31:11 | |
| | |
31 | #[pyclass(eq, eq_int)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:32:1 | |
| | |
32 | enum SimpleEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `SimpleEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
32 + #[derive(PartialEq)] | |
33 | enum SimpleEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:31:11 | |
| | |
31 | #[pyclass(eq, eq_int)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:32:1 | |
| | |
32 | enum SimpleEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `SimpleEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
32 + #[derive(PartialEq)] | |
33 | enum SimpleEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `==` cannot be applied to type `&ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:37:11 | |
| | |
37 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:38:1 | |
| | |
38 | enum ComplexEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `ComplexEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
38 + #[derive(PartialEq)] | |
39 | enum ComplexEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:37:11 | |
| | |
37 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:38:1 | |
| | |
38 | enum ComplexEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `ComplexEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
38 + #[derive(PartialEq)] | |
39 | enum ComplexEqOptRequiresPartialEq { | |
| | |
error[E0277]: the trait bound `SimpleHashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_enum.rs:55:31 | |
| | |
55 | #[pyclass(frozen, eq, eq_int, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `SimpleHashOptRequiresHash` | |
| | |
help: consider annotating `SimpleHashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
57 + #[derive(Hash)] | |
58 | enum SimpleHashOptRequiresHash { | |
| | |
error[E0277]: the trait bound `ComplexHashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_enum.rs:62:23 | |
| | |
62 | #[pyclass(frozen, eq, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `ComplexHashOptRequiresHash` | |
| | |
help: consider annotating `ComplexHashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
64 + #[derive(Hash)] | |
65 | enum ComplexHashOptRequiresHash { | |
| | |
error[E0369]: binary operation `>` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `<` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `<=` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `>=` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: enums can't be inherited by other classes | |
--> tests/ui/invalid_pyclass_enum.rs:3:11 | |
| | |
3 | #[pyclass(subclass)] | |
| ^^^^^^^^ | |
error: enums can't extend from other classes | |
--> tests/ui/invalid_pyclass_enum.rs:9:11 | |
| | |
9 | #[pyclass(extends = PyList)] | |
| ^^^^^^^^^^^^^^^^ | |
error: #[pyclass] can't be used on enums without any variants | |
--> tests/ui/invalid_pyclass_enum.rs:16:18 | |
| | |
16 | enum NoEmptyEnum {} | |
| ^^ | |
error: Unit variant `UnitVariant` is not yet supported in a complex enum | |
= help: change to an empty tuple variant instead: `UnitVariant()` | |
= note: the enum is complex because of non-unit variant `StructVariant` | |
--> tests/ui/invalid_pyclass_enum.rs:21:5 | |
| | |
21 | UnitVariant, | |
| ^^^^^^^^^^^ | |
error: `constructor` can't be used on a simple enum variant | |
--> tests/ui/invalid_pyclass_enum.rs:26:12 | |
| | |
26 | #[pyo3(constructor = (a, b))] | |
| ^^^^^^^^^^^^^^^^^^^^ | |
error: The `eq_int` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:43:11 | |
| | |
43 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: `eq_int` can only be used on simple enums. | |
--> tests/ui/invalid_pyclass_enum.rs:49:11 | |
| | |
49 | #[pyclass(eq_int)] | |
| ^^^^^^ | |
error: The `hash` option requires the `frozen` option. | |
--> tests/ui/invalid_pyclass_enum.rs:69:11 | |
| | |
69 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:69:11 | |
| | |
69 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `hash` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:76:11 | |
| | |
76 | #[pyclass(hash)] | |
| ^^^^ | |
error: The `ord` option requires the `eq` option. | |
--> tests/ui/invalid_pyclass_enum.rs:83:11 | |
| | |
83 | #[pyclass(ord)] | |
| ^^^ | |
error: #[pyclass] can't be used on enums without any variants - all variants of enum `AllEnumVariantsDisabled` have been configured out by cfg attributes | |
--> tests/ui/invalid_pyclass_enum.rs:98:6 | |
| | |
98 | enum AllEnumVariantsDisabled { | |
| ^^^^^^^^^^^^^^^^^^^^^^^ | |
error[E0369]: binary operation `==` cannot be applied to type `&SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:31:11 | |
| | |
31 | #[pyclass(eq, eq_int)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:32:1 | |
| | |
32 | enum SimpleEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `SimpleEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
32 + #[derive(PartialEq)] | |
33 | enum SimpleEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:31:11 | |
| | |
31 | #[pyclass(eq, eq_int)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `SimpleEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:32:1 | |
| | |
32 | enum SimpleEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `SimpleEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
32 + #[derive(PartialEq)] | |
33 | enum SimpleEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `==` cannot be applied to type `&ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:37:11 | |
| | |
37 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:38:1 | |
| | |
38 | enum ComplexEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `ComplexEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
38 + #[derive(PartialEq)] | |
39 | enum ComplexEqOptRequiresPartialEq { | |
| | |
error[E0369]: binary operation `!=` cannot be applied to type `&ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:37:11 | |
| | |
37 | #[pyclass(eq)] | |
| ^^ | |
| | |
note: an implementation of `PartialEq` might be missing for `ComplexEqOptRequiresPartialEq` | |
--> tests/ui/invalid_pyclass_enum.rs:38:1 | |
| | |
38 | enum ComplexEqOptRequiresPartialEq { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialEq` | |
help: consider annotating `ComplexEqOptRequiresPartialEq` with `#[derive(PartialEq)]` | |
| | |
38 + #[derive(PartialEq)] | |
39 | enum ComplexEqOptRequiresPartialEq { | |
| | |
error[E0277]: the trait bound `SimpleHashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_enum.rs:55:31 | |
| | |
55 | #[pyclass(frozen, eq, eq_int, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `SimpleHashOptRequiresHash` | |
| | |
help: consider annotating `SimpleHashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
57 + #[derive(Hash)] | |
58 | enum SimpleHashOptRequiresHash { | |
| | |
error[E0277]: the trait bound `ComplexHashOptRequiresHash: Hash` is not satisfied | |
--> tests/ui/invalid_pyclass_enum.rs:62:23 | |
| | |
62 | #[pyclass(frozen, eq, hash)] | |
| ^^^^ the trait `Hash` is not implemented for `ComplexHashOptRequiresHash` | |
| | |
help: consider annotating `ComplexHashOptRequiresHash` with `#[derive(Hash)]` | |
| | |
64 + #[derive(Hash)] | |
65 | enum ComplexHashOptRequiresHash { | |
| | |
error[E0369]: binary operation `>` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `<` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `<=` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
error[E0369]: binary operation `>=` cannot be applied to type `&InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:89:14 | |
| | |
89 | #[pyclass(eq,ord)] | |
| ^^^ | |
| | |
note: an implementation of `PartialOrd` might be missing for `InvalidOrderedComplexEnum2` | |
--> tests/ui/invalid_pyclass_enum.rs:91:1 | |
| | |
91 | enum InvalidOrderedComplexEnum2 { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ must implement `PartialOrd` | |
help: consider annotating `InvalidOrderedComplexEnum2` with `#[derive(PartialEq, PartialOrd)]` | |
| | |
91 + #[derive(PartialEq, PartialOrd)] | |
92 | enum InvalidOrderedComplexEnum2 { | |
| | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pyclass_item.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pyfunction_signatures.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: missing signature entry for argument `_x` | |
--> tests/ui/invalid_pyfunction_signatures.rs:5:8 | |
| | |
5 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: signature entry does not have a corresponding function argument | |
--> tests/ui/invalid_pyfunction_signatures.rs:9:21 | |
| | |
9 | #[pyo3(signature = (x))] | |
| ^ | |
error: expected argument from function definition `y` but got argument `x` | |
--> tests/ui/invalid_pyfunction_signatures.rs:13:21 | |
| | |
13 | #[pyo3(signature = (x))] | |
| ^ | |
error: expected one of: `name`, `pass_module`, `signature`, `text_signature`, `crate` | |
--> tests/ui/invalid_pyfunction_signatures.rs:18:14 | |
| | |
18 | #[pyfunction(x)] | |
| ^ | |
error: `*args` not allowed after `*` | |
--> tests/ui/invalid_pyfunction_signatures.rs:25:24 | |
| | |
25 | #[pyo3(signature = (*, *args))] | |
| ^ | |
error: `*` not allowed after `*` | |
--> tests/ui/invalid_pyfunction_signatures.rs:31:24 | |
| | |
31 | #[pyo3(signature = (*, *))] | |
| ^ | |
error: `*args` not allowed after `**kwargs` | |
--> tests/ui/invalid_pyfunction_signatures.rs:35:31 | |
| | |
35 | #[pyo3(signature = (**kwargs, *args))] | |
| ^ | |
error: `**kwargs_b` not allowed after `**kwargs_a` | |
--> tests/ui/invalid_pyfunction_signatures.rs:42:33 | |
| | |
42 | #[pyo3(signature = (**kwargs_a, **kwargs_b))] | |
| ^ | |
error: arguments of type `Python` must not be part of the signature | |
--> tests/ui/invalid_pyfunction_signatures.rs:48:27 | |
| | |
48 | #[pyfunction(signature = (py))] | |
| ^^ | |
error: cannot find attribute `args` in this scope | |
--> tests/ui/invalid_pyfunction_signatures.rs:58:7 | |
| | |
58 | #[args(x)] | |
| ^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: missing signature entry for argument `_x` | |
--> tests/ui/invalid_pyfunction_signatures.rs:5:8 | |
| | |
5 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: signature entry does not have a corresponding function argument | |
--> tests/ui/invalid_pyfunction_signatures.rs:9:21 | |
| | |
9 | #[pyo3(signature = (x))] | |
| ^ | |
error: expected argument from function definition `y` but got argument `x` | |
--> tests/ui/invalid_pyfunction_signatures.rs:13:21 | |
| | |
13 | #[pyo3(signature = (x))] | |
| ^ | |
error: expected one of: `name`, `pass_module`, `signature`, `text_signature`, `crate` | |
--> tests/ui/invalid_pyfunction_signatures.rs:18:14 | |
| | |
18 | #[pyfunction(x)] | |
| ^ | |
error: `*args` not allowed after `*` | |
--> tests/ui/invalid_pyfunction_signatures.rs:25:24 | |
| | |
25 | #[pyo3(signature = (*, *args))] | |
| ^^^^^ | |
error: `*` not allowed after `*` | |
--> tests/ui/invalid_pyfunction_signatures.rs:31:24 | |
| | |
31 | #[pyo3(signature = (*, *))] | |
| ^ | |
error: `*args` not allowed after `**kwargs` | |
--> tests/ui/invalid_pyfunction_signatures.rs:35:31 | |
| | |
35 | #[pyo3(signature = (**kwargs, *args))] | |
| ^^^^^ | |
error: `**kwargs_b` not allowed after `**kwargs_a` | |
--> tests/ui/invalid_pyfunction_signatures.rs:42:33 | |
| | |
42 | #[pyo3(signature = (**kwargs_a, **kwargs_b))] | |
| ^^^^^^^^^^ | |
error: arguments of type `Python` must not be part of the signature | |
--> tests/ui/invalid_pyfunction_signatures.rs:48:27 | |
| | |
48 | #[pyfunction(signature = (py))] | |
| ^^ | |
error: cannot find attribute `args` in this scope | |
--> tests/ui/invalid_pyfunction_signatures.rs:58:7 | |
| | |
58 | #[args(x)] | |
| ^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pyfunction_definition.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: functions inside #[pymethods] do not need to be annotated with #[pyfunction] | |
--> tests/ui/invalid_pyfunction_definition.rs:11:9 | |
| | |
11 | fn bug() {} | |
| ^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: functions inside #[pymethods] do not need to be annotated with #[pyfunction] | |
--> tests/ui/invalid_pyfunction_definition.rs:11:9 | |
| | |
11 | fn bug() {} | |
| ^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymethods_buffer.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pymethod_enum.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:11:24 | |
| | |
11 | fn mutate_in_place(&mut self) { | |
| ^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:9:1 | |
| | |
9 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0271]: type mismatch resolving `<TupleEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:27:24 | |
| | |
27 | fn mutate_in_place(&mut self) { | |
| ^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<TupleEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:25:1 | |
| | |
25 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:11:24 | |
| | |
11 | fn mutate_in_place(&mut self) { | |
| ^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<ComplexEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:9:1 | |
| | |
9 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0271]: type mismatch resolving `<TupleEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:27:24 | |
| | |
27 | fn mutate_in_place(&mut self) { | |
| ^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<TupleEnum as PyClass>::Frozen == False` | |
--> tests/ui/invalid_pymethod_enum.rs:25:1 | |
| | |
25 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymethod_names.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_pymethod_names.rs:11:14 | |
| | |
11 | #[getter(number)] | |
| ^^^^^^ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_pymethod_names.rs:18:12 | |
| | |
18 | #[pyo3(name = "bar")] | |
| ^^^^ | |
error: `name` not allowed with `#[new]` | |
--> tests/ui/invalid_pymethod_names.rs:24:19 | |
| | |
24 | #[pyo3(name = "makenew")] | |
| ^^^^^^^^^ | |
error: expected ident or string literal for property name | |
--> tests/ui/invalid_pymethod_names.rs:31:14 | |
| | |
31 | #[getter(1)] | |
| ^ | |
error: expected `#[getter(name)]` to set the name | |
--> tests/ui/invalid_pymethod_names.rs:37:14 | |
| | |
37 | #[getter = 1] | |
| ^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_pymethod_names.rs:11:14 | |
| | |
11 | #[getter(number)] | |
| ^^^^^^ | |
error: `name` may only be specified once | |
--> tests/ui/invalid_pymethod_names.rs:18:12 | |
| | |
18 | #[pyo3(name = "bar")] | |
| ^^^^^^^^^^^^ | |
error: `name` not allowed with `#[new]` | |
--> tests/ui/invalid_pymethod_names.rs:24:19 | |
| | |
24 | #[pyo3(name = "makenew")] | |
| ^^^^^^^^^ | |
error: expected ident or string literal for property name | |
--> tests/ui/invalid_pymethod_names.rs:31:14 | |
| | |
31 | #[getter(1)] | |
| ^ | |
error: expected `#[getter(name)]` to set the name | |
--> tests/ui/invalid_pymethod_names.rs:37:14 | |
| | |
37 | #[getter = 1] | |
| ^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymodule_args.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pycallargs.rs [should fail to compile] ... ok | |
test tests/ui/reject_generics.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: #[pyclass] cannot have generic parameters. For an explanation, see https://pyo3.rs/v0.23.3/class.html#no-generic-parameters | |
--> tests/ui/reject_generics.rs:4:25 | |
| | |
4 | struct ClassWithGenerics<A> { | |
| ^ | |
error: #[pyclass] cannot have lifetime parameters. For an explanation, see https://pyo3.rs/v0.23.3/class.html#no-lifetime-parameters | |
--> tests/ui/reject_generics.rs:9:27 | |
| | |
9 | struct ClassWithLifetimes<'a> { | |
| ^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: #[pyclass] cannot have generic parameters. For an explanation, see https://pyo3.rs/v0.23.3/class.html#no-generic-parameters | |
--> tests/ui/reject_generics.rs:4:25 | |
| | |
4 | struct ClassWithGenerics<A> { | |
| ^^^ | |
error: #[pyclass] cannot have lifetime parameters. For an explanation, see https://pyo3.rs/v0.23.3/class.html#no-lifetime-parameters | |
--> tests/ui/reject_generics.rs:9:27 | |
| | |
9 | struct ClassWithLifetimes<'a> { | |
| ^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_closure.rs [should fail to compile] ... ok | |
test tests/ui/pyclass_send.rs [should fail to compile] ... ok | |
test tests/ui/invalid_argument_attributes.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: expected `cancel_handle` or `from_py_with` | |
--> tests/ui/invalid_argument_attributes.rs:4:29 | |
| | |
4 | fn invalid_attribute(#[pyo3(get)] _param: String) {} | |
| ^^^ | |
error: expected `=` | |
--> tests/ui/invalid_argument_attributes.rs:7:45 | |
| | |
7 | fn from_py_with_no_value(#[pyo3(from_py_with)] _param: String) {} | |
| ^ | |
error: expected `cancel_handle` or `from_py_with` | |
--> tests/ui/invalid_argument_attributes.rs:10:31 | |
| | |
10 | fn from_py_with_string(#[pyo3("from_py_with")] _param: String) {} | |
| ^^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_argument_attributes.rs:13:58 | |
| | |
13 | fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] _param: String) {} | |
| ^^^^ | |
error: `from_py_with` may only be specified once per argument | |
--> tests/ui/invalid_argument_attributes.rs:16:56 | |
| | |
16 | fn from_py_with_repeated(#[pyo3(from_py_with = "func", from_py_with = "func")] _param: String) {} | |
| ^^^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: expected `cancel_handle` or `from_py_with` | |
--> tests/ui/invalid_argument_attributes.rs:4:29 | |
| | |
4 | fn invalid_attribute(#[pyo3(get)] _param: String) {} | |
| ^^^ | |
error: expected `=` | |
--> tests/ui/invalid_argument_attributes.rs:7:45 | |
| | |
7 | fn from_py_with_no_value(#[pyo3(from_py_with)] _param: String) {} | |
| ^ | |
error: expected `cancel_handle` or `from_py_with` | |
--> tests/ui/invalid_argument_attributes.rs:10:31 | |
| | |
10 | fn from_py_with_string(#[pyo3("from_py_with")] _param: String) {} | |
| ^^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_argument_attributes.rs:13:58 | |
| | |
13 | fn from_py_with_value_not_a_string(#[pyo3(from_py_with = func)] _param: String) {} | |
| ^^^^ | |
error: `from_py_with` may only be specified once per argument | |
--> tests/ui/invalid_argument_attributes.rs:16:56 | |
| | |
16 | fn from_py_with_repeated(#[pyo3(from_py_with = "func", from_py_with = "func")] _param: String) {} | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_intopy_derive.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:4:11 | |
| | |
4 | struct Foo(); | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:7:13 | |
| | |
7 | struct Foo2 {} | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty enum | |
--> tests/ui/invalid_intopy_derive.rs:10:6 | |
| | |
10 | enum EmptyEnum {} | |
| ^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:14:5 | |
| | |
14 | EmptyTuple(), | |
| ^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:20:5 | |
| | |
20 | EmptyStruct {}, | |
| ^^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:26:27 | |
| | |
26 | struct EmptyTransparentTup(); | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:30:31 | |
| | |
30 | struct EmptyTransparentStruct {} | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:35:5 | |
| | |
35 | EmptyTuple(), | |
| ^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:42:5 | |
| | |
42 | EmptyStruct {}, | |
| ^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:48:35 | |
| | |
48 | struct TransparentTupTooManyFields(String, String); | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:52:39 | |
| | |
52 | struct TransparentStructTooManyFields { | |
| _______________________________________^ | |
53 | | foo: String, | |
54 | | bar: String, | |
55 | | } | |
| |_^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:60:15 | |
| | |
60 | EmptyTuple(String, String), | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:67:17 | |
| | |
67 | EmptyStruct { | |
| _________________^ | |
68 | | foo: String, | |
69 | | bar: String, | |
70 | | }, | |
| |_____^ | |
error: expected `transparent` or `crate` | |
--> tests/ui/invalid_intopy_derive.rs:75:8 | |
| | |
75 | #[pyo3(unknown = "should not work")] | |
| ^^^^^^^ | |
error: #[derive(`IntoPyObject`)] is not supported for unions | |
--> tests/ui/invalid_intopy_derive.rs:81:1 | |
| | |
81 | union Union { | |
| ^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:87:5 | |
| | |
87 | Unit, | |
| ^^^^ | |
error: `attribute` is not supported by `IntoPyObject` | |
--> tests/ui/invalid_intopy_derive.rs:91:30 | |
| | |
91 | struct TupleAttribute(#[pyo3(attribute)] String, usize); | |
| ^^^^^^^^^ | |
error: `item` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_intopy_derive.rs:94:25 | |
| | |
94 | struct TupleItem(#[pyo3(item)] String, usize); | |
| ^^^^ | |
error: `attribute` is not supported by `IntoPyObject` | |
--> tests/ui/invalid_intopy_derive.rs:98:12 | |
| | |
98 | #[pyo3(attribute)] | |
| ^^^^^^^^^ | |
error: `transparent` structs may not have `item` for the inner field | |
--> tests/ui/invalid_intopy_derive.rs:105:12 | |
| | |
105 | #[pyo3(item)] | |
| ^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:4:11 | |
| | |
4 | struct Foo(); | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:7:13 | |
| | |
7 | struct Foo2 {} | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty enum | |
--> tests/ui/invalid_intopy_derive.rs:10:6 | |
| | |
10 | enum EmptyEnum {} | |
| ^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:14:5 | |
| | |
14 | EmptyTuple(), | |
| ^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:20:5 | |
| | |
20 | EmptyStruct {}, | |
| ^^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:26:27 | |
| | |
26 | struct EmptyTransparentTup(); | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty structs | |
--> tests/ui/invalid_intopy_derive.rs:30:31 | |
| | |
30 | struct EmptyTransparentStruct {} | |
| ^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:35:5 | |
| | |
35 | EmptyTuple(), | |
| ^^^^^^^^^^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:42:5 | |
| | |
42 | EmptyStruct {}, | |
| ^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:48:35 | |
| | |
48 | struct TransparentTupTooManyFields(String, String); | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:52:39 | |
| | |
52 | struct TransparentStructTooManyFields { | |
| _______________________________________^ | |
53 | | foo: String, | |
54 | | bar: String, | |
55 | | } | |
| |_^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:60:15 | |
| | |
60 | EmptyTuple(String, String), | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_intopy_derive.rs:67:17 | |
| | |
67 | EmptyStruct { | |
| _________________^ | |
68 | | foo: String, | |
69 | | bar: String, | |
70 | | }, | |
| |_____^ | |
error: expected `transparent` or `crate` | |
--> tests/ui/invalid_intopy_derive.rs:75:8 | |
| | |
75 | #[pyo3(unknown = "should not work")] | |
| ^^^^^^^ | |
error: #[derive(`IntoPyObject`)] is not supported for unions | |
--> tests/ui/invalid_intopy_derive.rs:81:1 | |
| | |
81 | / union Union { | |
82 | | a: usize, | |
83 | | } | |
| |_^ | |
error: cannot derive `IntoPyObject` for empty variants | |
--> tests/ui/invalid_intopy_derive.rs:87:5 | |
| | |
87 | Unit, | |
| ^^^^ | |
error: `attribute` is not supported by `IntoPyObject` | |
--> tests/ui/invalid_intopy_derive.rs:91:30 | |
| | |
91 | struct TupleAttribute(#[pyo3(attribute)] String, usize); | |
| ^^^^^^^^^ | |
error: `item` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_intopy_derive.rs:94:25 | |
| | |
94 | struct TupleItem(#[pyo3(item)] String, usize); | |
| ^^^^ | |
error: `attribute` is not supported by `IntoPyObject` | |
--> tests/ui/invalid_intopy_derive.rs:98:12 | |
| | |
98 | #[pyo3(attribute)] | |
| ^^^^^^^^^ | |
error: `transparent` structs may not have `item` for the inner field | |
--> tests/ui/invalid_intopy_derive.rs:105:12 | |
| | |
105 | #[pyo3(item)] | |
| ^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_frompy_derive.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:4:11 | |
| | |
4 | struct Foo(); | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:7:13 | |
| | |
7 | struct Foo2 {} | |
| ^^ | |
error: cannot derive FromPyObject for empty enum | |
--> tests/ui/invalid_frompy_derive.rs:10:6 | |
| | |
10 | enum EmptyEnum {} | |
| ^^^^^^^^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:14:15 | |
| | |
14 | EmptyTuple(), | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:20:17 | |
| | |
20 | EmptyStruct {}, | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:26:27 | |
| | |
26 | struct EmptyTransparentTup(); | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:30:31 | |
| | |
30 | struct EmptyTransparentStruct {} | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:35:15 | |
| | |
35 | EmptyTuple(), | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:42:17 | |
| | |
42 | EmptyStruct {}, | |
| ^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:48:35 | |
| | |
48 | struct TransparentTupTooManyFields(String, String); | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:52:39 | |
| | |
52 | struct TransparentStructTooManyFields { | |
| _______________________________________^ | |
53 | | foo: String, | |
54 | | bar: String, | |
55 | | } | |
| |_^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:60:15 | |
| | |
60 | EmptyTuple(String, String), | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:67:17 | |
| | |
67 | EmptyStruct { | |
| _________________^ | |
68 | | foo: String, | |
69 | | bar: String, | |
70 | | }, | |
| |_____^ | |
error: expected one of: `attribute`, `item`, `from_py_with`, `default` | |
--> tests/ui/invalid_frompy_derive.rs:76:12 | |
| | |
76 | #[pyo3(attr)] | |
| ^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:82:22 | |
| | |
82 | #[pyo3(attribute(1))] | |
| ^ | |
error: expected at most one argument: `attribute` or `attribute("name")` | |
--> tests/ui/invalid_frompy_derive.rs:88:25 | |
| | |
88 | #[pyo3(attribute("a", "b"))] | |
| ^ | |
error: attribute name cannot be empty | |
--> tests/ui/invalid_frompy_derive.rs:94:22 | |
| | |
94 | #[pyo3(attribute(""))] | |
| ^^ | |
error: unexpected end of input, expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:100:22 | |
| | |
100 | #[pyo3(attribute())] | |
| ^ | |
error: expected at most one argument: `item` or `item(key)` | |
--> tests/ui/invalid_frompy_derive.rs:106:20 | |
| | |
106 | #[pyo3(item("a", "b"))] | |
| ^ | |
error: unexpected end of input, expected literal | |
--> tests/ui/invalid_frompy_derive.rs:112:17 | |
| | |
112 | #[pyo3(item())] | |
| ^ | |
error: only one of `attribute` or `item` can be provided | |
--> tests/ui/invalid_frompy_derive.rs:118:5 | |
| | |
118 | #[pyo3(item, attribute)] | |
| ^ | |
error: expected one of: `transparent`, `from_item_all`, `annotation`, `crate` | |
--> tests/ui/invalid_frompy_derive.rs:123:8 | |
| | |
123 | #[pyo3(unknown = "should not work")] | |
| ^^^^^^^ | |
error: `annotation` is unsupported for structs | |
--> tests/ui/invalid_frompy_derive.rs:129:21 | |
| | |
129 | #[pyo3(annotation = "should not work")] | |
| ^^^^^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:136:25 | |
| | |
136 | #[pyo3(annotation = 1)] | |
| ^ | |
error: FromPyObject can be derived with at most one lifetime parameter | |
--> tests/ui/invalid_frompy_derive.rs:141:22 | |
| | |
141 | enum TooManyLifetimes<'a, 'b> { | |
| ^ | |
error: #[derive(FromPyObject)] is not supported for unions | |
--> tests/ui/invalid_frompy_derive.rs:147:1 | |
| | |
147 | union Union { | |
| ^^^^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:151:10 | |
| | |
151 | #[derive(FromPyObject)] | |
| ^^^^^^^^^^^^ | |
| | |
= note: this error originates in the derive macro `FromPyObject` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: expected `=` | |
--> tests/ui/invalid_frompy_derive.rs:158:24 | |
| | |
158 | #[pyo3(from_py_with)] | |
| ^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:164:27 | |
| | |
164 | #[pyo3(from_py_with = func)] | |
| ^^^^ | |
error: `getter` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_frompy_derive.rs:169:27 | |
| | |
169 | struct InvalidTupleGetter(#[pyo3(item("foo"))] String); | |
| ^ | |
error: `transparent` structs may not have a `getter` for the inner field | |
--> tests/ui/invalid_frompy_derive.rs:175:5 | |
| | |
175 | field: String, | |
| ^^^^^ | |
error: `transparent` structs may not have a `getter` for the inner field | |
--> tests/ui/invalid_frompy_derive.rs:186:5 | |
| | |
186 | field: String, | |
| ^^^^^ | |
error: `from_item_all` may only be provided once | |
--> tests/ui/invalid_frompy_derive.rs:190:23 | |
| | |
190 | #[pyo3(from_item_all, from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: Useless `item` - the struct is already annotated with `from_item_all` | |
--> tests/ui/invalid_frompy_derive.rs:196:8 | |
| | |
196 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: The struct is already annotated with `from_item_all`, `attribute` is not allowed | |
--> tests/ui/invalid_frompy_derive.rs:203:8 | |
| | |
203 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: The struct is already annotated with `from_item_all`, `attribute` is not allowed | |
--> tests/ui/invalid_frompy_derive.rs:210:8 | |
| | |
210 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: cannot derive FromPyObject for structs and variants with only default values | |
--> tests/ui/invalid_frompy_derive.rs:217:36 | |
| | |
217 | struct StructWithOnlyDefaultValues { | |
| ____________________________________^ | |
218 | | #[pyo3(default)] | |
219 | | field: String, | |
220 | | } | |
| |_^ | |
error: cannot derive FromPyObject for structs and variants with only default values | |
--> tests/ui/invalid_frompy_derive.rs:224:9 | |
| | |
224 | Foo { | |
| _________^ | |
225 | | #[pyo3(default)] | |
226 | | field: String, | |
227 | | }, | |
| |_____^ | |
error: `default` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_frompy_derive.rs:231:37 | |
| | |
231 | struct NamedTuplesWithDefaultValues(#[pyo3(default)] String); | |
| ^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:4:11 | |
| | |
4 | struct Foo(); | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:7:13 | |
| | |
7 | struct Foo2 {} | |
| ^^ | |
error: cannot derive FromPyObject for empty enum | |
--> tests/ui/invalid_frompy_derive.rs:10:6 | |
| | |
10 | enum EmptyEnum {} | |
| ^^^^^^^^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:14:15 | |
| | |
14 | EmptyTuple(), | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:20:17 | |
| | |
20 | EmptyStruct {}, | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:26:27 | |
| | |
26 | struct EmptyTransparentTup(); | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:30:31 | |
| | |
30 | struct EmptyTransparentStruct {} | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:35:15 | |
| | |
35 | EmptyTuple(), | |
| ^^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:42:17 | |
| | |
42 | EmptyStruct {}, | |
| ^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:48:35 | |
| | |
48 | struct TransparentTupTooManyFields(String, String); | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:52:39 | |
| | |
52 | struct TransparentStructTooManyFields { | |
| _______________________________________^ | |
53 | | foo: String, | |
54 | | bar: String, | |
55 | | } | |
| |_^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:60:15 | |
| | |
60 | EmptyTuple(String, String), | |
| ^^^^^^^^^^^^^^^^ | |
error: transparent structs and variants can only have 1 field | |
--> tests/ui/invalid_frompy_derive.rs:67:17 | |
| | |
67 | EmptyStruct { | |
| _________________^ | |
68 | | foo: String, | |
69 | | bar: String, | |
70 | | }, | |
| |_____^ | |
error: expected one of: `attribute`, `item`, `from_py_with`, `default` | |
--> tests/ui/invalid_frompy_derive.rs:76:12 | |
| | |
76 | #[pyo3(attr)] | |
| ^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:82:22 | |
| | |
82 | #[pyo3(attribute(1))] | |
| ^ | |
error: expected at most one argument: `attribute` or `attribute("name")` | |
--> tests/ui/invalid_frompy_derive.rs:88:25 | |
| | |
88 | #[pyo3(attribute("a", "b"))] | |
| ^ | |
error: attribute name cannot be empty | |
--> tests/ui/invalid_frompy_derive.rs:94:22 | |
| | |
94 | #[pyo3(attribute(""))] | |
| ^^ | |
error: unexpected end of input, expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:100:22 | |
| | |
100 | #[pyo3(attribute())] | |
| ^ | |
error: expected at most one argument: `item` or `item(key)` | |
--> tests/ui/invalid_frompy_derive.rs:106:20 | |
| | |
106 | #[pyo3(item("a", "b"))] | |
| ^ | |
error: unexpected end of input, expected literal | |
--> tests/ui/invalid_frompy_derive.rs:112:17 | |
| | |
112 | #[pyo3(item())] | |
| ^ | |
error: only one of `attribute` or `item` can be provided | |
--> tests/ui/invalid_frompy_derive.rs:118:5 | |
| | |
118 | #[pyo3(item, attribute)] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: expected one of: `transparent`, `from_item_all`, `annotation`, `crate` | |
--> tests/ui/invalid_frompy_derive.rs:123:8 | |
| | |
123 | #[pyo3(unknown = "should not work")] | |
| ^^^^^^^ | |
error: `annotation` is unsupported for structs | |
--> tests/ui/invalid_frompy_derive.rs:129:21 | |
| | |
129 | #[pyo3(annotation = "should not work")] | |
| ^^^^^^^^^^^^^^^^^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:136:25 | |
| | |
136 | #[pyo3(annotation = 1)] | |
| ^ | |
error: FromPyObject can be derived with at most one lifetime parameter | |
--> tests/ui/invalid_frompy_derive.rs:141:22 | |
| | |
141 | enum TooManyLifetimes<'a, 'b> { | |
| ^^^^^^^^ | |
error: #[derive(FromPyObject)] is not supported for unions | |
--> tests/ui/invalid_frompy_derive.rs:147:1 | |
| | |
147 | / union Union { | |
148 | | a: usize, | |
149 | | } | |
| |_^ | |
error: cannot derive FromPyObject for empty structs and variants | |
--> tests/ui/invalid_frompy_derive.rs:151:10 | |
| | |
151 | #[derive(FromPyObject)] | |
| ^^^^^^^^^^^^ | |
| | |
= note: this error originates in the derive macro `FromPyObject` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error: expected `=` | |
--> tests/ui/invalid_frompy_derive.rs:158:24 | |
| | |
158 | #[pyo3(from_py_with)] | |
| ^ | |
error: expected string literal | |
--> tests/ui/invalid_frompy_derive.rs:164:27 | |
| | |
164 | #[pyo3(from_py_with = func)] | |
| ^^^^ | |
error: `getter` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_frompy_derive.rs:169:27 | |
| | |
169 | struct InvalidTupleGetter(#[pyo3(item("foo"))] String); | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `transparent` structs may not have a `getter` for the inner field | |
--> tests/ui/invalid_frompy_derive.rs:175:5 | |
| | |
175 | field: String, | |
| ^^^^^ | |
error: `transparent` structs may not have a `getter` for the inner field | |
--> tests/ui/invalid_frompy_derive.rs:186:5 | |
| | |
186 | field: String, | |
| ^^^^^ | |
error: `from_item_all` may only be provided once | |
--> tests/ui/invalid_frompy_derive.rs:190:23 | |
| | |
190 | #[pyo3(from_item_all, from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: Useless `item` - the struct is already annotated with `from_item_all` | |
--> tests/ui/invalid_frompy_derive.rs:196:8 | |
| | |
196 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: The struct is already annotated with `from_item_all`, `attribute` is not allowed | |
--> tests/ui/invalid_frompy_derive.rs:203:8 | |
| | |
203 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: The struct is already annotated with `from_item_all`, `attribute` is not allowed | |
--> tests/ui/invalid_frompy_derive.rs:210:8 | |
| | |
210 | #[pyo3(from_item_all)] | |
| ^^^^^^^^^^^^^ | |
error: cannot derive FromPyObject for structs and variants with only default values | |
--> tests/ui/invalid_frompy_derive.rs:217:36 | |
| | |
217 | struct StructWithOnlyDefaultValues { | |
| ____________________________________^ | |
218 | | #[pyo3(default)] | |
219 | | field: String, | |
220 | | } | |
| |_^ | |
error: cannot derive FromPyObject for structs and variants with only default values | |
--> tests/ui/invalid_frompy_derive.rs:224:9 | |
| | |
224 | Foo { | |
| _________^ | |
225 | | #[pyo3(default)] | |
226 | | field: String, | |
227 | | }, | |
| |_____^ | |
error: `default` is not permitted on tuple struct elements. | |
--> tests/ui/invalid_frompy_derive.rs:231:37 | |
| | |
231 | struct NamedTuplesWithDefaultValues(#[pyo3(default)] String); | |
| ^^^^^^^^^^^^^^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/static_ref.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: lifetime may not live long enough | |
--> tests/ui/static_ref.rs:4:1 | |
| | |
4 | #[pyfunction] | |
| ^^^^^^^^^^^^^ | |
| | | |
| lifetime `'py` defined here | |
| coercion requires that `'py` must outlive `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0597]: `output[_]` does not live long enough | |
--> tests/ui/static_ref.rs:4:1 | |
| | |
4 | #[pyfunction] | |
| ^^^^^^^^^^^^- | |
| | | | |
| | `output[_]` dropped here while still borrowed | |
| borrowed value does not live long enough | |
| argument requires that `output[_]` is borrowed for `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0597]: `holder_0` does not live long enough | |
--> tests/ui/static_ref.rs:5:15 | |
| | |
4 | #[pyfunction] | |
| ------------- | |
| | | | |
| | `holder_0` dropped here while still borrowed | |
| binding `holder_0` declared here | |
5 | fn static_ref(list: &'static Bound<'_, PyList>) -> usize { | |
| ^^^^^^- | |
| | | | |
| | argument requires that `holder_0` is borrowed for `'static` | |
| borrowed value does not live long enough | |
error: lifetime may not live long enough | |
--> tests/ui/static_ref.rs:9:1 | |
| | |
9 | #[pyfunction] | |
| ^^^^^^^^^^^^^ | |
| | | |
| lifetime `'py` defined here | |
| coercion requires that `'py` must outlive `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0521]: borrowed data escapes outside of function | |
--> tests/ui/static_ref.rs:4:1 | |
| | |
4 | #[pyfunction] | |
| ^^^^^^^^^^^^^ | |
| | | |
| `py` is a reference that is only valid in the function body | |
| `py` escapes the function body here | |
| lifetime `'py` defined here | |
| argument requires that `'py` must outlive `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0597]: `output[_]` does not live long enough | |
--> tests/ui/static_ref.rs:4:1 | |
| | |
4 | #[pyfunction] | |
| ^^^^^^^^^^^^- | |
| | | | |
| | `output[_]` dropped here while still borrowed | |
| borrowed value does not live long enough | |
| argument requires that `output[_]` is borrowed for `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0597]: `holder_0` does not live long enough | |
--> tests/ui/static_ref.rs:5:15 | |
| | |
4 | #[pyfunction] | |
| ------------- | |
| | | | |
| | `holder_0` dropped here while still borrowed | |
| binding `holder_0` declared here | |
| argument requires that `holder_0` is borrowed for `'static` | |
5 | fn static_ref(list: &'static Bound<'_, PyList>) -> usize { | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough | |
error[E0521]: borrowed data escapes outside of function | |
--> tests/ui/static_ref.rs:9:1 | |
| | |
9 | #[pyfunction] | |
| ^^^^^^^^^^^^^ | |
| | | |
| `py` is a reference that is only valid in the function body | |
| `py` escapes the function body here | |
| lifetime `'py` defined here | |
| argument requires that `'py` must outlive `'static` | |
| | |
= note: this error originates in the attribute macro `pyfunction` (in Nightly builds, run with -Z macro-backtrace for more info) | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/wrong_aspyref_lifetimes.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pyfunctions.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: Python functions cannot have generic type parameters | |
--> tests/ui/invalid_pyfunctions.rs:5:21 | |
| | |
5 | fn generic_function<T>(_value: T) {} | |
| ^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pyfunctions.rs:8:37 | |
| | |
8 | fn impl_trait_function(_impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^ | |
error: wildcard argument names are not supported | |
--> tests/ui/invalid_pyfunctions.rs:11:22 | |
| | |
11 | fn wildcard_argument(_: i32) {} | |
| ^ | |
error: destructuring in arguments is not supported | |
--> tests/ui/invalid_pyfunctions.rs:14:26 | |
| | |
14 | fn destructured_argument((_a, _b): (i32, i32)) {} | |
| ^^^^^^^^ | |
error: args cannot be optional | |
--> tests/ui/invalid_pyfunctions.rs:18:32 | |
| | |
18 | fn function_with_optional_args(args: Option<Bound<'_, PyTuple>>) { | |
| ^^^^ | |
error: kwargs must be Option<_> | |
--> tests/ui/invalid_pyfunctions.rs:24:34 | |
| | |
24 | fn function_with_required_kwargs(kwargs: Bound<'_, PyDict>) { | |
| ^^^^^^ | |
error: expected `&PyModule` or `Py<PyModule>` as first argument with `pass_module` | |
--> tests/ui/invalid_pyfunctions.rs:29:37 | |
| | |
29 | fn pass_module_but_no_arguments<'py>() {} | |
| ^^ | |
error[E0277]: the trait bound `&str: From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not satisfied | |
--> tests/ui/invalid_pyfunctions.rs:33:14 | |
| | |
33 | _string: &str, | |
| ^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&str` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`String` implements `From<&String>` | |
`String` implements `From<&mut str>` | |
`String` implements `From<&str>` | |
`String` implements `From<Box<str>>` | |
`String` implements `From<Cow<'_, str>>` | |
`String` implements `From<char>` | |
= note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&str>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: Python functions cannot have generic type parameters | |
--> tests/ui/invalid_pyfunctions.rs:5:21 | |
| | |
5 | fn generic_function<T>(_value: T) {} | |
| ^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pyfunctions.rs:8:37 | |
| | |
8 | fn impl_trait_function(_impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^^^^^^^^^^^^^^ | |
error: wildcard argument names are not supported | |
--> tests/ui/invalid_pyfunctions.rs:11:22 | |
| | |
11 | fn wildcard_argument(_: i32) {} | |
| ^ | |
error: destructuring in arguments is not supported | |
--> tests/ui/invalid_pyfunctions.rs:14:26 | |
| | |
14 | fn destructured_argument((_a, _b): (i32, i32)) {} | |
| ^^^^^^^^ | |
error: args cannot be optional | |
--> tests/ui/invalid_pyfunctions.rs:18:32 | |
| | |
18 | fn function_with_optional_args(args: Option<Bound<'_, PyTuple>>) { | |
| ^^^^ | |
error: kwargs must be Option<_> | |
--> tests/ui/invalid_pyfunctions.rs:24:34 | |
| | |
24 | fn function_with_required_kwargs(kwargs: Bound<'_, PyDict>) { | |
| ^^^^^^ | |
error: expected `&PyModule` or `Py<PyModule>` as first argument with `pass_module` | |
--> tests/ui/invalid_pyfunctions.rs:29:37 | |
| | |
29 | fn pass_module_but_no_arguments<'py>() {} | |
| ^^ | |
error[E0277]: the trait bound `&str: From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not satisfied | |
--> tests/ui/invalid_pyfunctions.rs:33:14 | |
| | |
33 | _string: &str, | |
| ^^^^ the trait `From<BoundRef<'_, '_, pyo3::types::PyModule>>` is not implemented for `&str` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`String` implements `From<&String>` | |
`String` implements `From<&mut str>` | |
`String` implements `From<&str>` | |
`String` implements `From<Box<str>>` | |
`String` implements `From<Cow<'_, str>>` | |
`String` implements `From<char>` | |
= note: required for `BoundRef<'_, '_, pyo3::types::PyModule>` to implement `Into<&str>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymethods.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: #[classattr] can only have one argument (of type pyo3::Python) | |
--> tests/ui/invalid_pymethods.rs:9:35 | |
| | |
9 | fn class_attr_with_args(_foo: i32) {} | |
| ^^^ | |
error: `#[classattr]` does not take any arguments | |
--> tests/ui/invalid_pymethods.rs:14:5 | |
| | |
14 | #[classattr(foobar)] | |
| ^ | |
error: static method needs #[staticmethod] attribute | |
--> tests/ui/invalid_pymethods.rs:20:5 | |
| | |
20 | fn staticmethod_without_attribute() {} | |
| ^^ | |
error: unexpected receiver | |
--> tests/ui/invalid_pymethods.rs:26:35 | |
| | |
26 | fn staticmethod_with_receiver(&self) {} | |
| ^ | |
error: Expected `&Bound<PyType>` or `Py<PyType>` as the first argument to `#[classmethod]` | |
--> tests/ui/invalid_pymethods.rs:32:33 | |
| | |
32 | fn classmethod_with_receiver(&self) {} | |
| ^^^^^^^ | |
error: Expected `&Bound<PyType>` or `Py<PyType>` as the first argument to `#[classmethod]` | |
--> tests/ui/invalid_pymethods.rs:38:36 | |
| | |
38 | fn classmethod_missing_argument() -> Self { | |
| ^^ | |
error: expected receiver for `#[getter]` | |
--> tests/ui/invalid_pymethods.rs:54:5 | |
| | |
54 | fn getter_without_receiver() {} | |
| ^^ | |
error: expected receiver for `#[setter]` | |
--> tests/ui/invalid_pymethods.rs:60:5 | |
| | |
60 | fn setter_without_receiver() {} | |
| ^^ | |
error: static method needs #[staticmethod] attribute | |
--> tests/ui/invalid_pymethods.rs:66:5 | |
| | |
66 | fn text_signature_on_call() {} | |
| ^^ | |
error: `text_signature` not allowed with `getter` | |
--> tests/ui/invalid_pymethods.rs:72:12 | |
| | |
72 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: `text_signature` not allowed with `setter` | |
--> tests/ui/invalid_pymethods.rs:79:12 | |
| | |
79 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: `text_signature` not allowed with `classattr` | |
--> tests/ui/invalid_pymethods.rs:86:12 | |
| | |
86 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: expected a string literal or `None` | |
--> tests/ui/invalid_pymethods.rs:92:30 | |
| | |
92 | #[pyo3(text_signature = 1)] | |
| ^ | |
error: `text_signature` may only be specified once | |
--> tests/ui/invalid_pymethods.rs:99:12 | |
| | |
99 | #[pyo3(text_signature = None)] | |
| ^^^^^^^^^^^^^^ | |
error: `signature` not allowed with `getter` | |
--> tests/ui/invalid_pymethods.rs:106:12 | |
| | |
106 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `signature` not allowed with `setter` | |
--> tests/ui/invalid_pymethods.rs:113:12 | |
| | |
113 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `signature` not allowed with `classattr` | |
--> tests/ui/invalid_pymethods.rs:120:12 | |
| | |
120 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `#[new]` may not be combined with `#[classmethod]` `#[staticmethod]`, `#[classattr]`, `#[getter]`, and `#[setter]` | |
--> tests/ui/invalid_pymethods.rs:126:7 | |
| | |
126 | #[new] | |
| ^^^ | |
error: `#[new]` does not take any arguments | |
= help: did you mean `#[new] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:137:7 | |
| | |
137 | #[new(signature = ())] | |
| ^^^ | |
error: `#[new]` does not take any arguments | |
= note: this was previously accepted and ignored | |
--> tests/ui/invalid_pymethods.rs:143:11 | |
| | |
143 | #[new = ()] // in this form there's no suggestion to move arguments to `#[pyo3()]` attribute | |
| ^ | |
error: `#[classmethod]` does not take any arguments | |
= help: did you mean `#[classmethod] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:149:7 | |
| | |
149 | #[classmethod(signature = ())] | |
| ^^^^^^^^^^^ | |
error: `#[staticmethod]` does not take any arguments | |
= help: did you mean `#[staticmethod] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:155:7 | |
| | |
155 | #[staticmethod(signature = ())] | |
| ^^^^^^^^^^^^ | |
error: `#[classattr]` does not take any arguments | |
= help: did you mean `#[classattr] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:161:7 | |
| | |
161 | #[classattr(signature = ())] | |
| ^^^^^^^^^ | |
error: Python functions cannot have generic type parameters | |
--> tests/ui/invalid_pymethods.rs:167:23 | |
| | |
167 | fn generic_method<T>(_value: T) {} | |
| ^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pymethods.rs:172:49 | |
| | |
172 | fn impl_trait_method_first_arg(_impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pymethods.rs:177:57 | |
| | |
177 | fn impl_trait_method_second_arg(&self, _impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^ | |
error: `pass_module` cannot be used on Python methods | |
--> tests/ui/invalid_pymethods.rs:182:12 | |
| | |
182 | #[pyo3(pass_module)] | |
| ^^^^^^^^^^^ | |
error: Python objects are shared, so 'self' cannot be moved out of the Python interpreter. | |
Try `&self`, `&mut self, `slf: PyRef<'_, Self>` or `slf: PyRefMut<'_, Self>`. | |
--> tests/ui/invalid_pymethods.rs:188:29 | |
| | |
188 | fn method_self_by_value(self) {} | |
| ^^^^ | |
error: macros cannot be used as items in `#[pymethods]` impl blocks | |
= note: this was previously accepted and ignored | |
--> tests/ui/invalid_pymethods.rs:197:5 | |
| | |
197 | macro_invocation!(); | |
| ^^^^^^^^^^^^^^^^ | |
error[E0277]: the trait bound `i32: From<BoundRef<'_, '_, PyType>>` is not satisfied | |
--> tests/ui/invalid_pymethods.rs:46:45 | |
| | |
46 | fn classmethod_wrong_first_argument(_x: i32) -> Self { | |
| ^^^ the trait `From<BoundRef<'_, '_, PyType>>` is not implemented for `i32` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`i32` implements `From<bool>` | |
`i32` implements `From<i16>` | |
`i32` implements `From<i8>` | |
`i32` implements `From<u16>` | |
`i32` implements `From<u8>` | |
= note: required for `BoundRef<'_, '_, PyType>` to implement `Into<i32>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: #[classattr] can only have one argument (of type pyo3::Python) | |
--> tests/ui/invalid_pymethods.rs:9:35 | |
| | |
9 | fn class_attr_with_args(_foo: i32) {} | |
| ^^^ | |
error: `#[classattr]` does not take any arguments | |
--> tests/ui/invalid_pymethods.rs:14:5 | |
| | |
14 | #[classattr(foobar)] | |
| ^^^^^^^^^^^^^^^^^^^^ | |
error: static method needs #[staticmethod] attribute | |
--> tests/ui/invalid_pymethods.rs:20:5 | |
| | |
20 | fn staticmethod_without_attribute() {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: unexpected receiver | |
--> tests/ui/invalid_pymethods.rs:26:35 | |
| | |
26 | fn staticmethod_with_receiver(&self) {} | |
| ^^^^^ | |
error: Expected `&Bound<PyType>` or `Py<PyType>` as the first argument to `#[classmethod]` | |
--> tests/ui/invalid_pymethods.rs:32:33 | |
| | |
32 | fn classmethod_with_receiver(&self) {} | |
| ^^^^^^^ | |
error: Expected `&Bound<PyType>` or `Py<PyType>` as the first argument to `#[classmethod]` | |
--> tests/ui/invalid_pymethods.rs:38:36 | |
| | |
38 | fn classmethod_missing_argument() -> Self { | |
| ^^ | |
error: expected receiver for `#[getter]` | |
--> tests/ui/invalid_pymethods.rs:54:5 | |
| | |
54 | fn getter_without_receiver() {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: expected receiver for `#[setter]` | |
--> tests/ui/invalid_pymethods.rs:60:5 | |
| | |
60 | fn setter_without_receiver() {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: static method needs #[staticmethod] attribute | |
--> tests/ui/invalid_pymethods.rs:66:5 | |
| | |
66 | fn text_signature_on_call() {} | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `text_signature` not allowed with `getter` | |
--> tests/ui/invalid_pymethods.rs:72:12 | |
| | |
72 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: `text_signature` not allowed with `setter` | |
--> tests/ui/invalid_pymethods.rs:79:12 | |
| | |
79 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: `text_signature` not allowed with `classattr` | |
--> tests/ui/invalid_pymethods.rs:86:12 | |
| | |
86 | #[pyo3(text_signature = "()")] | |
| ^^^^^^^^^^^^^^ | |
error: expected a string literal or `None` | |
--> tests/ui/invalid_pymethods.rs:92:30 | |
| | |
92 | #[pyo3(text_signature = 1)] | |
| ^ | |
error: `text_signature` may only be specified once | |
--> tests/ui/invalid_pymethods.rs:99:12 | |
| | |
99 | #[pyo3(text_signature = None)] | |
| ^^^^^^^^^^^^^^^^^^^^^ | |
error: `signature` not allowed with `getter` | |
--> tests/ui/invalid_pymethods.rs:106:12 | |
| | |
106 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `signature` not allowed with `setter` | |
--> tests/ui/invalid_pymethods.rs:113:12 | |
| | |
113 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `signature` not allowed with `classattr` | |
--> tests/ui/invalid_pymethods.rs:120:12 | |
| | |
120 | #[pyo3(signature = ())] | |
| ^^^^^^^^^ | |
error: `#[new]` may not be combined with `#[classmethod]` `#[staticmethod]`, `#[classattr]`, `#[getter]`, and `#[setter]` | |
--> tests/ui/invalid_pymethods.rs:126:7 | |
| | |
126 | #[new] | |
| _______^ | |
127 | | #[classmethod] | |
128 | | #[staticmethod] | |
129 | | #[classattr] | |
130 | | #[getter(x)] | |
131 | | #[setter(x)] | |
| |____________^ | |
error: `#[new]` does not take any arguments | |
= help: did you mean `#[new] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:137:7 | |
| | |
137 | #[new(signature = ())] | |
| ^^^^^^^^^^^^^^^^^^^ | |
error: `#[new]` does not take any arguments | |
= note: this was previously accepted and ignored | |
--> tests/ui/invalid_pymethods.rs:143:11 | |
| | |
143 | #[new = ()] // in this form there's no suggestion to move arguments to `#[pyo3()]` attribute | |
| ^ | |
error: `#[classmethod]` does not take any arguments | |
= help: did you mean `#[classmethod] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:149:7 | |
| | |
149 | #[classmethod(signature = ())] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `#[staticmethod]` does not take any arguments | |
= help: did you mean `#[staticmethod] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:155:7 | |
| | |
155 | #[staticmethod(signature = ())] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: `#[classattr]` does not take any arguments | |
= help: did you mean `#[classattr] #[pyo3(signature = ())]`? | |
--> tests/ui/invalid_pymethods.rs:161:7 | |
| | |
161 | #[classattr(signature = ())] | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
error: Python functions cannot have generic type parameters | |
--> tests/ui/invalid_pymethods.rs:167:23 | |
| | |
167 | fn generic_method<T>(_value: T) {} | |
| ^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pymethods.rs:172:49 | |
| | |
172 | fn impl_trait_method_first_arg(_impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^^^^^^^^^^^^^^ | |
error: Python functions cannot have `impl Trait` arguments | |
--> tests/ui/invalid_pymethods.rs:177:57 | |
| | |
177 | fn impl_trait_method_second_arg(&self, _impl_trait: impl AsRef<PyAny>) {} | |
| ^^^^^^^^^^^^^^^^^ | |
error: `pass_module` cannot be used on Python methods | |
--> tests/ui/invalid_pymethods.rs:182:12 | |
| | |
182 | #[pyo3(pass_module)] | |
| ^^^^^^^^^^^ | |
error: Python objects are shared, so 'self' cannot be moved out of the Python interpreter. | |
Try `&self`, `&mut self, `slf: PyRef<'_, Self>` or `slf: PyRefMut<'_, Self>`. | |
--> tests/ui/invalid_pymethods.rs:188:29 | |
| | |
188 | fn method_self_by_value(self) {} | |
| ^^^^ | |
error: macros cannot be used as items in `#[pymethods]` impl blocks | |
= note: this was previously accepted and ignored | |
--> tests/ui/invalid_pymethods.rs:197:5 | |
| | |
197 | macro_invocation!(); | |
| ^^^^^^^^^^^^^^^^^^^^ | |
error[E0277]: the trait bound `i32: From<BoundRef<'_, '_, PyType>>` is not satisfied | |
--> tests/ui/invalid_pymethods.rs:46:45 | |
| | |
46 | fn classmethod_wrong_first_argument(_x: i32) -> Self { | |
| ^^^ the trait `From<BoundRef<'_, '_, PyType>>` is not implemented for `i32` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`i32` implements `From<bool>` | |
`i32` implements `From<i16>` | |
`i32` implements `From<i8>` | |
`i32` implements `From<u16>` | |
`i32` implements `From<u8>` | |
= note: required for `BoundRef<'_, '_, PyType>` to implement `Into<i32>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_intern_arg.rs [should fail to compile] ... ok | |
test tests/ui/invalid_frozen_pyclass_borrow.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot use `#[pyo3(set)]` on a `frozen` class | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:38:12 | |
| | |
38 | #[pyo3(set)] | |
| ^^^ | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:11:19 | |
| | |
11 | fn mut_method(&mut self) {} | |
| ^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:9:1 | |
| | |
9 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:15:31 | |
| | |
15 | let borrow = foo.bind(py).borrow_mut(); | |
| ^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::borrow_mut` | |
--> src/instance.rs | |
| | |
| pub fn borrow_mut(&self) -> PyRefMut<'py, T> | |
| ---------- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = False>, | |
| ^^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::borrow_mut` | |
error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:25:33 | |
| | |
25 | let borrow = child.bind(py).borrow_mut(); | |
| ^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::borrow_mut` | |
--> src/instance.rs | |
| | |
| pub fn borrow_mut(&self) -> PyRefMut<'py, T> | |
| ---------- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = False>, | |
| ^^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::borrow_mut` | |
error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:29:11 | |
| | |
29 | class.get(); | |
| ^^^ expected `True`, found `False` | |
| | |
note: required by a bound in `pyo3::Py::<T>::get` | |
--> src/instance.rs | |
| | |
| pub fn get(&self) -> &T | |
| --- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = True> + Sync, | |
| ^^^^^^^^^^^^^ required by this bound in `Py::<T>::get` | |
error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:33:11 | |
| | |
33 | class.get(); | |
| ^^^ expected `True`, found `False` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::get` | |
--> src/instance.rs | |
| | |
| pub fn get(&self) -> &T | |
| --- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = True> + Sync, | |
| ^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::get` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: cannot use `#[pyo3(set)]` on a `frozen` class | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:38:12 | |
| | |
38 | #[pyo3(set)] | |
| ^^^ | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:11:19 | |
| | |
11 | fn mut_method(&mut self) {} | |
| ^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `extract_pyclass_ref_mut` | |
--> src/impl_/extract_argument.rs | |
| | |
| pub fn extract_pyclass_ref_mut<'a, 'py: 'a, T: PyClass<Frozen = False>>( | |
| ^^^^^^^^^^^^^^ required by this bound in `extract_pyclass_ref_mut` | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:9:1 | |
| | |
9 | #[pymethods] | |
| ^^^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `PyRefMut` | |
--> src/pycell.rs | |
| | |
| pub struct PyRefMut<'p, T: PyClass<Frozen = False>> { | |
| ^^^^^^^^^^^^^^ required by this bound in `PyRefMut` | |
= note: this error originates in the attribute macro `pymethods` (in Nightly builds, run with -Z macro-backtrace for more info) | |
error[E0271]: type mismatch resolving `<Foo as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:15:31 | |
| | |
15 | let borrow = foo.bind(py).borrow_mut(); | |
| ^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::borrow_mut` | |
--> src/instance.rs | |
| | |
| pub fn borrow_mut(&self) -> PyRefMut<'py, T> | |
| ---------- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = False>, | |
| ^^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::borrow_mut` | |
error[E0271]: type mismatch resolving `<ImmutableChild as PyClass>::Frozen == False` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:25:33 | |
| | |
25 | let borrow = child.bind(py).borrow_mut(); | |
| ^^^^^^^^^^ expected `False`, found `True` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::borrow_mut` | |
--> src/instance.rs | |
| | |
| pub fn borrow_mut(&self) -> PyRefMut<'py, T> | |
| ---------- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = False>, | |
| ^^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::borrow_mut` | |
error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:29:11 | |
| | |
29 | class.get(); | |
| ^^^ expected `True`, found `False` | |
| | |
note: required by a bound in `pyo3::Py::<T>::get` | |
--> src/instance.rs | |
| | |
| pub fn get(&self) -> &T | |
| --- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = True> + Sync, | |
| ^^^^^^^^^^^^^ required by this bound in `Py::<T>::get` | |
error[E0271]: type mismatch resolving `<MutableBase as PyClass>::Frozen == True` | |
--> tests/ui/invalid_frozen_pyclass_borrow.rs:33:11 | |
| | |
33 | class.get(); | |
| ^^^ expected `True`, found `False` | |
| | |
note: required by a bound in `pyo3::Bound::<'py, T>::get` | |
--> src/instance.rs | |
| | |
| pub fn get(&self) -> &T | |
| --- required by a bound in this associated function | |
| where | |
| T: PyClass<Frozen = True> + Sync, | |
| ^^^^^^^^^^^^^ required by this bound in `Bound::<'py, T>::get` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymethod_receiver.rs [should fail to compile] ... ok | |
test tests/ui/missing_intopy.rs [should fail to compile] ... ok | |
test tests/ui/invalid_result_conversion.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0277]: the trait bound `PyErr: From<MyError>` is not satisfied | |
--> tests/ui/invalid_result_conversion.rs:22:25 | |
| | |
22 | fn should_not_work() -> Result<(), MyError> { | |
| ^^^^^^ the trait `From<MyError>` is not implemented for `PyErr` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`PyErr` implements `From<AddrParseError>` | |
`PyErr` implements `From<DecodeUtf16Error>` | |
`PyErr` implements `From<DowncastError<'_, '_>>` | |
`PyErr` implements `From<DowncastIntoError<'_>>` | |
`PyErr` implements `From<FromUtf16Error>` | |
`PyErr` implements `From<FromUtf8Error>` | |
`PyErr` implements `From<Infallible>` | |
`PyErr` implements `From<IntoInnerError<W>>` | |
and $N others | |
= note: required for `MyError` to implement `Into<PyErr>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0277]: the trait bound `PyErr: From<MyError>` is not satisfied | |
--> tests/ui/invalid_result_conversion.rs:22:25 | |
| | |
22 | fn should_not_work() -> Result<(), MyError> { | |
| ^^^^^^^^^^^^^^^^^^^ the trait `From<MyError>` is not implemented for `PyErr` | |
| | |
= help: the following other types implement trait `From<T>`: | |
`PyErr` implements `From<AddrParseError>` | |
`PyErr` implements `From<DecodeUtf16Error>` | |
`PyErr` implements `From<DowncastError<'_, '_>>` | |
`PyErr` implements `From<DowncastIntoError<'_>>` | |
`PyErr` implements `From<FromUtf16Error>` | |
`PyErr` implements `From<FromUtf8Error>` | |
`PyErr` implements `From<Infallible>` | |
`PyErr` implements `From<IntoInnerError<W>>` | |
and $N others | |
= note: required for `MyError` to implement `Into<PyErr>` | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/not_send.rs [should fail to compile] ... ok | |
test tests/ui/not_send2.rs [should fail to compile] ... ok | |
test tests/ui/get_set_all.rs [should fail to compile] ... ok | |
test tests/ui/traverse.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:10:27 | |
| | |
10 | fn __traverse__(_slf: PyRef<Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:20:27 | |
| | |
20 | fn __traverse__(_slf: PyRefMut<Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:30:27 | |
| | |
30 | fn __traverse__(_slf: Bound<'_, Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:40:21 | |
| | |
40 | fn __traverse__(&mut self, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^ | |
error: __traverse__ may not take `Python`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:60:33 | |
| | |
60 | fn __traverse__(&self, _py: Python<'_>, _visit: PyVisit<'_>) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:10:27 | |
| | |
10 | fn __traverse__(_slf: PyRef<Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:20:27 | |
| | |
20 | fn __traverse__(_slf: PyRefMut<Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:30:27 | |
| | |
30 | fn __traverse__(_slf: Bound<'_, Self>, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^^^^^^^ | |
error: __traverse__ may not take a receiver other than `&self`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:40:21 | |
| | |
40 | fn __traverse__(&mut self, _visit: PyVisit) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^ | |
error: __traverse__ may not take `Python`. Usually, an implementation of `__traverse__(&self, visit: PyVisit<'_>) -> Result<(), PyTraverseError>` should do nothing but calls to `visit.call`. Most importantly, safe access to the GIL is prohibited inside implementations of `__traverse__`, i.e. `Python::with_gil` will panic. | |
--> tests/ui/traverse.rs:60:33 | |
| | |
60 | fn __traverse__(&self, _py: Python<'_>, _visit: PyVisit<'_>) -> Result<(), PyTraverseError> { | |
| ^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymodule_in_root.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0658]: non-inline modules in proc macro input are unstable | |
--> tests/ui/invalid_pymodule_in_root.rs:5:1 | |
| | |
5 | mod invalid_pymodule_in_root_module; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information | |
error: `#[pymodule]` can only be used on inline modules | |
--> tests/ui/invalid_pymodule_in_root.rs:5:1 | |
| | |
5 | mod invalid_pymodule_in_root_module; | |
| ^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error[E0658]: non-inline modules in proc macro input are unstable | |
--> tests/ui/invalid_pymodule_in_root.rs:5:1 | |
| | |
5 | mod invalid_pymodule_in_root_module; | |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
| | |
= note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information | |
= help: add `#![feature(proc_macro_hygiene)]` to the crate attributes to enable | |
error: `#[pymodule]` can only be used on inline modules | |
--> tests/ui/invalid_pymodule_in_root.rs:5:1 | |
| | |
5 | mod invalid_pymodule_in_root_module; | |
| ^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymodule_glob.rs [should fail to compile] ... ok | |
test tests/ui/invalid_pymodule_trait.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: `#[pymodule_export]` may only be used on `use` statements | |
--> tests/ui/invalid_pymodule_trait.rs:5:5 | |
| | |
5 | #[pymodule_export] | |
| ^ | |
error: cannot find attribute `pymodule_export` in this scope | |
--> tests/ui/invalid_pymodule_trait.rs:5:7 | |
| | |
5 | #[pymodule_export] | |
| ^^^^^^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: `#[pymodule_export]` may only be used on `use` statements | |
--> tests/ui/invalid_pymodule_trait.rs:5:5 | |
| | |
5 | / #[pymodule_export] | |
6 | | trait Foo {} | |
| |________________^ | |
error: cannot find attribute `pymodule_export` in this scope | |
--> tests/ui/invalid_pymodule_trait.rs:5:7 | |
| | |
5 | #[pymodule_export] | |
| ^^^^^^^^^^^^^^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/invalid_pymodule_two_pymodule_init.rs [should fail to compile] ... mismatch | |
EXPECTED: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: only one `#[pymodule_init]` may be specified | |
--> tests/ui/invalid_pymodule_two_pymodule_init.rs:13:5 | |
| | |
13 | fn init2(_m: &Bound<'_, PyModule>) -> PyResult<()> { | |
| ^^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
ACTUAL OUTPUT: | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
error: only one `#[pymodule_init]` may be specified | |
--> tests/ui/invalid_pymodule_two_pymodule_init.rs:13:5 | |
| | |
13 | / fn init2(_m: &Bound<'_, PyModule>) -> PyResult<()> { | |
14 | | Ok(()) | |
15 | | } | |
| |_____^ | |
┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ | |
note: If the actual output is the correct output you can bless it by rerunning | |
your test with the environment variable TRYBUILD=overwrite | |
test tests/ui/pymodule_missing_docs.rs [should pass] ... ok | |
test tests/ui/forbid_unsafe.rs [should pass] ... ok | |
test tests/ui/duplicate_pymodule_submodule.rs [should fail to compile] ... ok | |
test tests/ui/invalid_base_class.rs [should fail to compile] ... ok | |
test tests/ui/ambiguous_associated_items.rs [should pass] ... ok | |
test tests/ui/pyclass_probe.rs [should pass] ... ok | |
test test_compile_errors ... FAILED | |
failures: | |
---- test_compile_errors stdout ---- | |
thread 'test_compile_errors' panicked at /Users/goldbaum/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/trybuild-1.0.103/src/run.rs:102:13: | |
20 of 41 tests failed | |
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace | |
failures: | |
test_compile_errors | |
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 9.60s | |
error: test failed, to rerun pass `--test test_compile_error` | |
Running tests/test_coroutine.rs (target/debug/deps/test_coroutine-60fcea65248e7c96) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Running tests/test_datetime.rs (target/debug/deps/test_datetime-821220477a71f53b) | |
test_datetime-821220477a71f53b(53205,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 8 tests | |
test test_datetime_check ... ok | |
test test_pydatetime_out_of_bounds ... ok | |
test test_datetime_utc ... ok | |
test test_pydate_out_of_bounds ... ok | |
test test_pytime_out_of_bounds ... ok | |
test test_delta_check ... ok | |
test test_date_check ... ok | |
test test_time_check ... ok | |
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s | |
Running tests/test_datetime_import.rs (target/debug/deps/test_datetime_import-fda300366096f582) | |
test_datetime_import-fda300366096f582(53207,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test test_bad_datetime_module_panic - should panic ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.10s | |
Running tests/test_declarative_module.rs (target/debug/deps/test_declarative_module-b80fa4cf95c64c32) | |
test_declarative_module-b80fa4cf95c64c32(53209,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 4 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53209) | |
Read of size 8 at 0x0001018e3f88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x100066060) | |
Previous write of size 8 at 0x0001018e3f88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x100066060) | |
Location is global '_PyRuntime' at 0x0001018dda80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000105100100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x1000adb38) | |
Mutex M1 (0x000105103d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x1000adb38) | |
Thread T2 (tid=18694259, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x1000add70) | |
Thread T4 (tid=18694261, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_declarative_module-b80fa4cf95c64c32:arm64+0x1000add70) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_inner_module_full_path ... ok | |
test test_module_names ... ok | |
test test_raw_ident_module ... ok | |
test test_declarative_module ... ok | |
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_declarative_module` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_declarative_module-b80fa4cf95c64c32` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_default_impls.rs (target/debug/deps/test_default_impls-3aab16b58f8ba675) | |
test_default_impls-3aab16b58f8ba675(53212,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 2 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53212) | |
Read of size 4 at 0x00010c79f530 by thread T2 (mutexes: write M0): | |
#0 unicodekeys_lookup_unicode dictobject.c:1151 (libpython3.13t.dylib:arm64+0xead6c) | |
#1 _Py_dict_lookup dictobject.c:1262 (libpython3.13t.dylib:arm64+0xebabc) | |
#2 dict_setdefault_ref_lock_held dictobject.c:4282 (libpython3.13t.dylib:arm64+0xf6748) | |
#3 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#4 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#5 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#6 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#7 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#8 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#9 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#10 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#11 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#12 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#13 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#14 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#15 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#16 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#17 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#18 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#19 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#20 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#21 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#22 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#23 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#24 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#25 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#26 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#27 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#28 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#29 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#30 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#31 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#32 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#33 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#34 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#35 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Previous write of size 4 at 0x00010c79f530 by thread T1 (mutexes: write M1): | |
#0 intern_common unicodeobject.c (libpython3.13t.dylib:arm64+0x1c9cac) | |
#1 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#2 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#3 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#4 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#5 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#6 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#7 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#8 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#9 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#10 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#11 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#12 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#13 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#14 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#15 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#16 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#17 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#18 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#19 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#20 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#21 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#22 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#23 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#24 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#25 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#26 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#27 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#28 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#29 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#30 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#31 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Mutex M0 (0x000109300100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Mutex M1 (0x0001093001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Thread T2 (tid=18694279, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
Thread T1 (tid=18694278, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:1151 in unicodekeys_lookup_unicode | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53212) | |
Atomic read of size 4 at 0x00010c79f50c by thread T2 (mutexes: write M0): | |
#0 dict_setdefault_ref_lock_held dictobject.c:4315 (libpython3.13t.dylib:arm64+0xf6770) | |
#1 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#2 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#3 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#4 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#5 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#6 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#7 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#8 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#9 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#10 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#11 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#12 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#13 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#14 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#15 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#16 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#17 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#18 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#19 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#20 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#21 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#22 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#23 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#24 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#25 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#26 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#27 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#28 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#29 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#30 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#31 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#32 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#33 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Previous write of size 4 at 0x00010c79f50c by thread T1 (mutexes: write M1): | |
#0 Py_SET_REFCNT object.h:406 (libpython3.13t.dylib:arm64+0x1ca75c) | |
#1 intern_common unicodeobject.c:15305 (libpython3.13t.dylib:arm64+0x1c9fd4) | |
#2 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#3 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#4 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#5 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#6 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#7 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#8 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#9 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#10 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#11 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#12 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#13 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#14 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#15 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#16 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#17 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#18 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#19 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#20 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#21 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#22 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#23 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#24 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#25 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#26 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#27 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#28 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#29 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#30 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#31 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#32 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Mutex M0 (0x000109300100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Mutex M1 (0x0001093001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Thread T2 (tid=18694279, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
Thread T1 (tid=18694278, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:4315 in dict_setdefault_ref_lock_held | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53212) | |
Read of size 8 at 0x0001057aff88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Previous write of size 8 at 0x0001057aff88 by thread T1 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100051790) | |
Location is global '_PyRuntime' at 0x0001057a9a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109300100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Mutex M1 (0x0001093001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x1000940f0) | |
Thread T2 (tid=18694279, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
Thread T1 (tid=18694278, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_default_impls-3aab16b58f8ba675:arm64+0x100094328) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_default_slot_exists ... ok | |
test test_override_slot ... ok | |
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s | |
ThreadSanitizer: reported 3 warnings | |
error: test failed, to rerun pass `--test test_default_impls` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_default_impls-3aab16b58f8ba675` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_enum.rs (target/debug/deps/test_enum-4151507bd8e0a487) | |
test_enum-4151507bd8e0a487(53215,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 19 tests | |
test custom_eq ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53215) | |
Read of size 8 at 0x000103827f88 by thread T7 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_enum-4151507bd8e0a487:arm64+0x10008b7ac) | |
Previous write of size 8 at 0x000103827f88 by thread T2 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_enum-4151507bd8e0a487:arm64+0x10008b7ac) | |
Location is global '_PyRuntime' at 0x000103821a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107103b40) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_enum-4151507bd8e0a487:arm64+0x1000d1888) | |
Mutex M1 (0x000107100100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_enum-4151507bd8e0a487:arm64+0x1000d1888) | |
Thread T7 (tid=18694302, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_enum-4151507bd8e0a487:arm64+0x1000d1ac0) | |
Thread T2 (tid=18694297, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_enum-4151507bd8e0a487:arm64+0x1000d1ac0) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_custom_module ... ok | |
test test_custom_discriminant ... ok | |
test test_big_enum_no_overflow ... ok | |
test test_enum_class_attr ... ok | |
test test_enum_eq_incomparable ... ok | |
test test_repr_parse ... ok | |
test test_enum_compare_int ... ok | |
test test_rename_variant_repr_correct ... ok | |
test test_enum_to_int ... ok | |
test test_enum_arg ... ok | |
test test_return_enum ... ok | |
test test_complex_enum_with_hash ... ok | |
test test_enum_compare_int_no_throw_when_overflow ... ok | |
test test_simple_enum_with_hash ... ok | |
test test_simple_enum_eq_only ... ok | |
test test_rename_enum_repr_correct ... ok | |
test test_enum_eq_enum ... ok | |
test test_renaming_all_enum_variants ... ok | |
test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_enum` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_enum-4151507bd8e0a487` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_exceptions.rs (target/debug/deps/test_exceptions-39d24bd9772eeea5) | |
test_exceptions-39d24bd9772eeea5(53218,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 3 tests | |
test test_exception_nosegfault ... ok | |
test test_custom_error ... ok | |
test test_filenotfounderror ... ok | |
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_field_cfg.rs (target/debug/deps/test_field_cfg-62242f11005efeaa) | |
test_field_cfg-62242f11005efeaa(53219,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 2 tests | |
test test_cfg ... ok | |
test test_cfg_simple_enum ... ok | |
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_frompy_intopy_roundtrip.rs (target/debug/deps/test_frompy_intopy_roundtrip-8d11be425c5c4fdc) | |
test_frompy_intopy_roundtrip-8d11be425c5c4fdc(53220,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 7 tests | |
test test_generic_with_bound ... ok | |
test test_named_fields_struct ... ok | |
test test_transparent_named_field_struct ... ok | |
test test_transparent_tuple_struct ... ok | |
test test_enum ... ok | |
test test_tuple_struct ... ok | |
test test_generic_transparent_named_field_struct ... ok | |
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_frompyobject.rs (target/debug/deps/test_frompyobject-0bbbfc31a64f2983) | |
test_frompyobject-0bbbfc31a64f2983(53222,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 28 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53222) | |
Read of size 8 at 0x0001018b3f88 by thread T5 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000726e8) | |
Previous write of size 8 at 0x0001018b3f88 by thread T8 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000726e8) | |
Location is global '_PyRuntime' at 0x0001018ada80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000105303cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000b7c34) | |
Mutex M1 (0x000105303a80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000b7c34) | |
Thread T5 (tid=18694392, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000b7e6c) | |
Thread T8 (tid=18694395, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_frompyobject-0bbbfc31a64f2983:arm64+0x1000b7e6c) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_enum_error ... ok | |
test test_enum_catch_all ... ok | |
test test_generic_named_fields_struct ... ok | |
test test_enum ... ok | |
test test_from_py_with_tuple_struct_error ... ok | |
test test_err_rename ... ok | |
test test_generic_transparent_named_field_struct ... ok | |
test test_from_py_with ... ok | |
test test_generic_with_bound ... ok | |
test test_named_fields_struct ... ok | |
test test_from_py_with_enum ... ok | |
test test_from_py_with_tuple_struct ... ok | |
test test_named_field_with_ext_fn ... ok | |
test test_struct_nested_type_errors ... ok | |
test test_transparent_from_py_with ... ok | |
test test_struct_nested_type_errors_with_generics ... ok | |
test test_transparent_tuple_error_message ... ok | |
test test_transparent_struct_error_message ... ok | |
test test_transparent_tuple_struct ... ok | |
test test_transparent_named_field_struct ... ok | |
test test_tuple_struct ... ok | |
test test_tuple_struct_error_message ... ok | |
test test_with_default_item ... ok | |
test test_with_default_item_and_conversion_function ... ok | |
test test_with_explicit_default_item ... ok | |
test test_with_default_item_enum ... ok | |
test test_with_keyword_item ... ok | |
test test_with_keyword_attr ... ok | |
test result: ok. 28 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_frompyobject` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_frompyobject-0bbbfc31a64f2983` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_gc.rs (target/debug/deps/test_gc-b9598a6bb489d133) | |
test_gc-b9598a6bb489d133(53225,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 16 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53225) | |
Read of size 8 at 0x000103c2ff88 by thread T9 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_gc-b9598a6bb489d133:arm64+0x10007a8e8) | |
Previous write of size 8 at 0x000103c2ff88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_gc-b9598a6bb489d133:arm64+0x10007a8e8) | |
Location is global '_PyRuntime' at 0x000103c29a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107604940) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_gc-b9598a6bb489d133:arm64+0x1000bd4e8) | |
Mutex M1 (0x000107604d00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_gc-b9598a6bb489d133:arm64+0x1000bd4e8) | |
Thread T9 (tid=18694448, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_gc-b9598a6bb489d133:arm64+0x1000bd720) | |
Thread T4 (tid=18694443, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_gc-b9598a6bb489d133:arm64+0x1000bd720) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test inheritance_with_new_methods_with_drop ... ok | |
test test_traverse_subclass_override_clear ... ok | |
test multithreaded_class_with_freelist ... ok | |
test test_traverse_subclass ... ok | |
test gc_during_borrow ... ok | |
test class_with_freelist ... ok | |
test traverse_cannot_be_hijacked ... ok | |
test data_is_dropped ... ok | |
test traverse_partial ... ok | |
test traverse_panic ... ok | |
test unsendable_are_not_traversed_on_foreign_thread ... ok | |
test tries_gil_in_traverse ... ok | |
test drop_during_traversal_without_gil ... ok | |
test gc_null_traversal ... ok | |
test drop_during_traversal_with_gil ... ok | |
test test_cycle_clear ... ok | |
test result: ok. 16 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_gc` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_gc-b9598a6bb489d133` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_getter_setter.rs (target/debug/deps/test_getter_setter-bfdb6968a48cc824) | |
test_getter_setter-bfdb6968a48cc824(53230,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 10 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53230) | |
Read of size 8 at 0x0001059aff88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x100072418) | |
Previous write of size 8 at 0x0001059aff88 by thread T5 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x100072418) | |
Location is global '_PyRuntime' at 0x0001059a9a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109403d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x1000b5eec) | |
Mutex M1 (0x000109403cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x1000b5eec) | |
Thread T4 (tid=18694497, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x1000b6124) | |
Thread T5 (tid=18694498, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_getter_setter-bfdb6968a48cc824:arm64+0x1000b6124) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test get_all_and_set ... ok | |
test frozen_py_field_get ... ok | |
test borrowed_value_with_lifetime_of_self ... ok | |
test getter_setter_autogen ... ok | |
test tuple_struct_getter_setter ... ok | |
test test_optional_setter ... ok | |
test ref_getter_setter ... ok | |
test cell_getter_setter ... ok | |
test get_set_all ... ok | |
test class_with_properties ... ok | |
test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_getter_setter` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_getter_setter-bfdb6968a48cc824` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_inheritance.rs (target/debug/deps/test_inheritance-1bf0159d5d774dff) | |
test_inheritance-1bf0159d5d774dff(53233,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 11 tests | |
test is_subclass_and_is_instance ... ok | |
test call_base_and_sub_methods ... ok | |
test inheritance_with_new_methods ... ok | |
test inheriting_native_type::inherit_dict ... ok | |
test subclass ... ok | |
test handle_result_in_new ... ok | |
test inheriting_native_type::inherit_dict_drop ... ok | |
test inheriting_native_type::inherit_set ... ok | |
test mutation_fails ... ok | |
test inheriting_native_type::custom_exception ... ok | |
test test_subclass_ref_counts ... ok | |
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.13s | |
Running tests/test_intopyobject.rs (target/debug/deps/test_intopyobject-b622c6525425eb80) | |
test_intopyobject-b622c6525425eb80(53235,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 7 tests | |
test test_generic_with_bound ... ok | |
test test_transparent_tuple_struct ... ok | |
test test_generic_transparent_named_field_struct ... ok | |
test test_named_fields_struct ... ok | |
test test_enum ... ok | |
test test_transparent_named_field_struct ... ok | |
test test_tuple_struct ... ok | |
test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_macro_docs.rs (target/debug/deps/test_macro_docs-93d1df9bd7abea3f) | |
test_macro_docs-93d1df9bd7abea3f(53236,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test meth_doc ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_macros.rs (target/debug/deps/test_macros-e1e8e99d1e6b0ccf) | |
test_macros-e1e8e99d1e6b0ccf(53237,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test test_macro_rules_interactions ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s | |
Running tests/test_mapping.rs (target/debug/deps/test_mapping-3d9128794ef619ef) | |
test_mapping-3d9128794ef619ef(53238,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 4 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53238) | |
Read of size 8 at 0x000103a5bf88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_mapping-3d9128794ef619ef:arm64+0x10006035c) | |
Previous write of size 8 at 0x000103a5bf88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_mapping-3d9128794ef619ef:arm64+0x10006035c) | |
Location is global '_PyRuntime' at 0x000103a55a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107500100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_mapping-3d9128794ef619ef:arm64+0x1000a5eac) | |
Mutex M1 (0x000107503d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_mapping-3d9128794ef619ef:arm64+0x1000a5eac) | |
Thread T2 (tid=18694563, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_mapping-3d9128794ef619ef:arm64+0x1000a60e4) | |
Thread T4 (tid=18694565, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_mapping-3d9128794ef619ef:arm64+0x1000a60e4) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_setitem ... ok | |
test test_delitem ... ok | |
test test_getitem ... ok | |
test mapping_is_not_sequence ... ok | |
test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_mapping` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_mapping-3d9128794ef619ef` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_methods.rs (target/debug/deps/test_methods-4f36d1884c624068) | |
test_methods-4f36d1884c624068(53242,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 15 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53242) | |
Read of size 8 at 0x000103983f88 by thread T9 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_methods-4f36d1884c624068:arm64+0x1000ad4f0) | |
Previous write of size 8 at 0x000103983f88 by thread T11 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_methods-4f36d1884c624068:arm64+0x1000ad4f0) | |
Location is global '_PyRuntime' at 0x00010397da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x0001074039c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_methods-4f36d1884c624068:arm64+0x1000f47c0) | |
Mutex M1 (0x000107403840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_methods-4f36d1884c624068:arm64+0x1000f47c0) | |
Thread T9 (tid=18694590, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_methods-4f36d1884c624068:arm64+0x1000f49f8) | |
Thread T11 (tid=18694592, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_methods-4f36d1884c624068:arm64+0x1000f49f8) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test instance_method_with_args ... ok | |
test class_method_with_args ... ok | |
test static_method_with_args ... ok | |
test meth_doc ... ok | |
test test_issue_2988 ... ok | |
test static_method ... ok | |
test test_cfg_attrs ... ok | |
test test_option_pyclass_arg ... ok | |
test class_method ... ok | |
test method_with_lifetime ... ok | |
test instance_method ... ok | |
test test_raw_idents ... ok | |
test method_with_pyclassarg ... ok | |
test test_from_sequence ... ok | |
test meth_signature ... ok | |
test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.39s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_methods` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_methods-4f36d1884c624068` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_module.rs (target/debug/deps/test_module-1dc42c92cbce2c45) | |
test_module-1dc42c92cbce2c45(53245,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 13 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53245) | |
Read of size 8 at 0x0001040fbf88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_module-1dc42c92cbce2c45:arm64+0x10006cf10) | |
Previous write of size 8 at 0x0001040fbf88 by thread T10 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_module-1dc42c92cbce2c45:arm64+0x10006cf10) | |
Location is global '_PyRuntime' at 0x0001040f5a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107a03d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_module-1dc42c92cbce2c45:arm64+0x1000b60e4) | |
Mutex M1 (0x000107a03900) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_module-1dc42c92cbce2c45:arm64+0x1000b60e4) | |
Thread T4 (tid=18694615, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_module-1dc42c92cbce2c45:arm64+0x1000b631c) | |
Thread T10 (tid=18694621, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_module-1dc42c92cbce2c45:arm64+0x1000b631c) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_module_with_explicit_py_arg ... ok | |
test test_module_dict ... ok | |
test test_module_dunder_all ... ok | |
test test_module_doc_hidden ... ok | |
test test_module_nesting ... ok | |
test test_module_renaming ... ok | |
test test_raw_idents ... ok | |
test test_module_from_code_bound ... ok | |
test test_module_with_constant ... ok | |
test test_vararg_module ... ok | |
test test_custom_names ... ok | |
test test_module_functions_with_module ... ok | |
test test_module_with_functions ... ok | |
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_module` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_module-1dc42c92cbce2c45` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_multiple_pymethods.rs (target/debug/deps/test_multiple_pymethods-cfddca573742bec6) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Running tests/test_proto_methods.rs (target/debug/deps/test_proto_methods-a5eae531fea38861) | |
test_proto_methods-a5eae531fea38861(53249,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 25 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53249) | |
Read of size 8 at 0x000105337f88 by thread T6 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000a4f44) | |
Previous write of size 8 at 0x000105337f88 by thread T8 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000a4f44) | |
Location is global '_PyRuntime' at 0x000105331a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000108e03c00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Mutex M1 (0x000108e03a80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Thread T6 (tid=18694645, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
Thread T8 (tid=18694647, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test len_overflow ... ok | |
test iterator ... ok | |
test delitem ... ok | |
test getattr_doesnt_override_member ... ok | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53249) | |
Atomic read of size 8 at 0x00011a040400 by thread T15 (mutexes: write M0): | |
#0 _Py_IncRef object.c:341 (libpython3.13t.dylib:arm64+0x11a818) | |
#1 pyo3::instance::Py$LT$T$GT$::clone_ref::h2bbb76304febf2d9 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000b4f28) | |
Previous write of size 8 at 0x00011a040400 by thread T14 (mutexes: write M1): | |
#0 _Py_NewReference object.c:2483 (libpython3.13t.dylib:arm64+0x123c94) | |
#1 _PyType_AllocNoTrack typeobject.c:2061 (libpython3.13t.dylib:arm64+0x169824) | |
#2 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#3 _PyType_FromMetaclass_impl typeobject.c:4685 (libpython3.13t.dylib:arm64+0x16ae20) | |
#4 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#5 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h066e6d4dea4b3239 <null> (test_proto_methods-a5eae531fea38861:arm64+0x10009a118) | |
Mutex M0 (0x000108e035c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Mutex M1 (0x000108e03640) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Thread T15 (tid=18694664, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
Thread T14 (tid=18694663, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
SUMMARY: ThreadSanitizer: data race object.c:341 in _Py_IncRef | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53249) | |
Atomic write of size 8 at 0x00011a040410 by thread T15 (mutexes: write M0): | |
#0 _Py_IncRef object.c:341 (libpython3.13t.dylib:arm64+0x11a84c) | |
#1 pyo3::instance::Py$LT$T$GT$::clone_ref::h2bbb76304febf2d9 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000b4f28) | |
Previous write of size 8 at 0x00011a040410 by thread T14 (mutexes: write M1): | |
#0 _Py_NewReference object.c:2483 (libpython3.13t.dylib:arm64+0x123cd4) | |
#1 _PyType_AllocNoTrack typeobject.c:2061 (libpython3.13t.dylib:arm64+0x169824) | |
#2 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#3 _PyType_FromMetaclass_impl typeobject.c:4685 (libpython3.13t.dylib:arm64+0x16ae20) | |
#4 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#5 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h066e6d4dea4b3239 <null> (test_proto_methods-a5eae531fea38861:arm64+0x10009a118) | |
Mutex M0 (0x000108e035c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Mutex M1 (0x000108e03640) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ede28) | |
Thread T15 (tid=18694664, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
Thread T14 (tid=18694663, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_proto_methods-a5eae531fea38861:arm64+0x1000ee060) | |
SUMMARY: ThreadSanitizer: data race object.c:341 in _Py_IncRef | |
================== | |
test getattr_and_getattribute ... ok | |
test setdelitem ... ok | |
test setitem ... ok | |
test getattribute_overrides_member ... ok | |
test contains ... ok | |
test test_delattr ... ok | |
test test_bool ... ok | |
test callable ... ok | |
test test_getattr ... ok | |
test test_repr ... ok | |
test test_contains_opt_out ... ok | |
test test_hash ... ok | |
test test_setattr ... ok | |
test test_str ... ok | |
test test_getitem ... ok | |
test descr_getset ... ok | |
test test_hash_opt_out ... ok | |
test mapping ... ok | |
test sequence ... ok | |
test test_await ... ok | |
test test_anext_aiter ... ok | |
test result: ok. 25 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.10s | |
ThreadSanitizer: reported 3 warnings | |
error: test failed, to rerun pass `--test test_proto_methods` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_proto_methods-a5eae531fea38861` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_pyfunction.rs (target/debug/deps/test_pyfunction-a10e50b4ae3cabf3) | |
test_pyfunction-a10e50b4ae3cabf3(53254,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 17 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53254) | |
Read of size 8 at 0x00010618ff88 by thread T9 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Previous write of size 8 at 0x00010618ff88 by thread T4 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Location is global '_PyRuntime' at 0x000106189a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109a039c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Mutex M1 (0x000109a03d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Thread T9 (tid=18694720, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
Thread T4 (tid=18694715, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53254) | |
Read of size 4 at 0x0001101202b0 by thread T11 (mutexes: write M0): | |
#0 unicodekeys_lookup_unicode dictobject.c:1151 (libpython3.13t.dylib:arm64+0xeaefc) | |
#1 _Py_dict_lookup dictobject.c:1262 (libpython3.13t.dylib:arm64+0xebabc) | |
#2 dict_setdefault_ref_lock_held dictobject.c:4282 (libpython3.13t.dylib:arm64+0xf6748) | |
#3 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#4 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#5 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#6 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#7 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#8 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#9 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#10 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#11 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#12 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#13 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#14 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#15 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#16 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#17 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#18 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#19 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#20 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#21 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#22 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#23 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#24 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#25 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#26 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#27 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#28 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#29 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#30 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#31 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#32 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#33 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#34 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#35 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Previous write of size 4 at 0x0001101202b0 by thread T8 (mutexes: write M1): | |
#0 intern_common unicodeobject.c (libpython3.13t.dylib:arm64+0x1c9cac) | |
#1 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#2 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#3 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#4 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#5 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#6 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#7 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#8 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#9 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#10 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#11 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#12 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#13 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Mutex M0 (0x000109a03840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Mutex M1 (0x000109a03a80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Thread T11 (tid=18694722, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
Thread T8 (tid=18694719, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:1151 in unicodekeys_lookup_unicode | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53254) | |
Atomic read of size 4 at 0x00011012028c by thread T11 (mutexes: write M0): | |
#0 dict_setdefault_ref_lock_held dictobject.c:4315 (libpython3.13t.dylib:arm64+0xf6770) | |
#1 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#2 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#3 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#4 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#5 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#6 assignment_expression_rule parser.c:11774 (libpython3.13t.dylib:arm64+0x14790) | |
#7 genexp_rule parser.c:17374 (libpython3.13t.dylib:arm64+0x18088) | |
#8 primary_rule parser.c:14298 (libpython3.13t.dylib:arm64+0x17c38) | |
#9 await_primary_rule parser.c:14252 (libpython3.13t.dylib:arm64+0x178d4) | |
#10 power_rule parser.c:14128 (libpython3.13t.dylib:arm64+0x175bc) | |
#11 factor_rule parser.c:14078 (libpython3.13t.dylib:arm64+0x17224) | |
#12 term_rule parser.c:13662 (libpython3.13t.dylib:arm64+0x16e7c) | |
#13 sum_rule parser.c:13494 (libpython3.13t.dylib:arm64+0x16590) | |
#14 shift_expr_rule parser.c:13314 (libpython3.13t.dylib:arm64+0x161b8) | |
#15 bitwise_and_rule parser.c:13192 (libpython3.13t.dylib:arm64+0x15dac) | |
#16 bitwise_xor_rule parser.c:13070 (libpython3.13t.dylib:arm64+0x15a60) | |
#17 bitwise_or_rule parser.c:12948 (libpython3.13t.dylib:arm64+0x153a0) | |
#18 comparison_rule parser.c:12188 (libpython3.13t.dylib:arm64+0x1ccb0) | |
#19 inversion_rule parser.c:12139 (libpython3.13t.dylib:arm64+0x1cb10) | |
#20 conjunction_rule parser.c:12016 (libpython3.13t.dylib:arm64+0x1c578) | |
#21 disjunction_rule parser.c:11928 (libpython3.13t.dylib:arm64+0x1a64c) | |
#22 expression_rule parser.c:11216 (libpython3.13t.dylib:arm64+0x14d00) | |
#23 assert_stmt_rule parser.c:3345 (libpython3.13t.dylib:arm64+0x42370) | |
#24 simple_stmt_rule parser.c:1930 (libpython3.13t.dylib:arm64+0x40700) | |
#25 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#26 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#27 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#28 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#29 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#30 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#31 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#32 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#33 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Previous write of size 4 at 0x00011012028c by thread T8 (mutexes: write M1): | |
#0 Py_SET_REFCNT object.h:406 (libpython3.13t.dylib:arm64+0x1ca75c) | |
#1 intern_common unicodeobject.c:15305 (libpython3.13t.dylib:arm64+0x1c9fd4) | |
#2 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#3 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#4 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#5 function_def_raw_rule parser.c:4520 (libpython3.13t.dylib:arm64+0x13ccc) | |
#6 compound_stmt_rule parser.c:2087 (libpython3.13t.dylib:arm64+0xff00) | |
#7 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa10) | |
#8 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#9 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#10 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#11 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#12 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#13 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#14 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x10007e718) | |
Mutex M0 (0x000109a03840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Mutex M1 (0x000109a03a80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8d88) | |
Thread T11 (tid=18694722, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
Thread T8 (tid=18694719, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyfunction-a10e50b4ae3cabf3:arm64+0x1000c8fc0) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:4315 in dict_setdefault_ref_lock_held | |
================== | |
test test_from_py_with_defaults ... ok | |
test test_pycfunction_new ... ok | |
test test_closure_counter ... ok | |
test test_optional_bool ... ok | |
test test_functions_with_function_args ... ok | |
test test_pycfunction_new_with_keywords ... ok | |
test test_rust_keyword_name ... ok | |
test test_return_value_borrows_from_arguments ... ok | |
test test_reference_to_bound_arguments ... ok | |
test use_pyfunction ... ok | |
test test_closure ... ok | |
test test_some_wrap_arguments ... ok | |
test test_pyfunction_raw_ident ... ok | |
test test_conversion_error ... ok | |
test test_function_with_custom_conversion_error ... ok | |
test test_function_with_custom_conversion ... ok | |
test test_buffer_add ... ok | |
test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.41s | |
ThreadSanitizer: reported 3 warnings | |
error: test failed, to rerun pass `--test test_pyfunction` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_pyfunction-a10e50b4ae3cabf3` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_pyself.rs (target/debug/deps/test_pyself-2d2535d5c5bceae2) | |
test_pyself-2d2535d5c5bceae2(53257,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 3 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53257) | |
Read of size 8 at 0x000105c47f88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x10005d6e8) | |
Previous write of size 8 at 0x000105c47f88 by thread T1 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x10005d6e8) | |
Location is global '_PyRuntime' at 0x000105c41a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109600100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x1000a12fc) | |
Mutex M1 (0x0001096001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x1000a12fc) | |
Thread T2 (tid=18694745, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x1000a1534) | |
Thread T1 (tid=18694744, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_pyself-2d2535d5c5bceae2:arm64+0x1000a1534) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_nested_iter ... ok | |
test test_nested_iter_reset ... ok | |
test test_clone_ref ... ok | |
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_pyself` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_pyself-2d2535d5c5bceae2` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_sequence.rs (target/debug/deps/test_sequence-6af22ad9bbd66516) | |
test_sequence-6af22ad9bbd66516(53260,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 13 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53260) | |
Read of size 4 at 0x00010a79f2b0 by thread T4 (mutexes: write M0): | |
#0 unicodekeys_lookup_unicode dictobject.c:1151 (libpython3.13t.dylib:arm64+0xead6c) | |
#1 _Py_dict_lookup dictobject.c:1262 (libpython3.13t.dylib:arm64+0xebabc) | |
#2 dict_setdefault_ref_lock_held dictobject.c:4282 (libpython3.13t.dylib:arm64+0xf6748) | |
#3 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#4 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#5 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#6 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#7 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#8 atom_rule parser.c:14742 (libpython3.13t.dylib:arm64+0x18ac0) | |
#9 t_primary_rule parser.c:18963 (libpython3.13t.dylib:arm64+0x1b7e8) | |
#10 target_with_star_atom_rule parser.c:18463 (libpython3.13t.dylib:arm64+0x1b008) | |
#11 star_target_rule parser.c:18406 (libpython3.13t.dylib:arm64+0x1ad48) | |
#12 star_targets_rule parser.c:18148 (libpython3.13t.dylib:arm64+0x1a190) | |
#13 _loop1_14_rule parser.c:26269 (libpython3.13t.dylib:arm64+0x4311c) | |
#14 simple_stmt_rule parser.c:1717 (libpython3.13t.dylib:arm64+0x3fff4) | |
#15 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#16 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#17 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#18 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#19 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#20 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#21 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#22 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#23 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Previous write of size 4 at 0x00010a79f2b0 by thread T5 (mutexes: write M1): | |
#0 intern_common unicodeobject.c (libpython3.13t.dylib:arm64+0x1c9cac) | |
#1 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#2 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#3 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#4 atom_rule parser.c:14742 (libpython3.13t.dylib:arm64+0x18ac0) | |
#5 t_primary_rule parser.c:18963 (libpython3.13t.dylib:arm64+0x1b7e8) | |
#6 target_with_star_atom_rule parser.c:18463 (libpython3.13t.dylib:arm64+0x1b008) | |
#7 star_target_rule parser.c:18406 (libpython3.13t.dylib:arm64+0x1ad48) | |
#8 star_targets_rule parser.c:18148 (libpython3.13t.dylib:arm64+0x1a190) | |
#9 _loop1_14_rule parser.c:26269 (libpython3.13t.dylib:arm64+0x4311c) | |
#10 simple_stmt_rule parser.c:1717 (libpython3.13t.dylib:arm64+0x3fff4) | |
#11 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#12 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#13 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#14 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#15 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#16 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#17 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#18 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#19 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Mutex M0 (0x000105503d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Mutex M1 (0x000105503cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Thread T4 (tid=18694764, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
Thread T5 (tid=18694765, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:1151 in unicodekeys_lookup_unicode | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53260) | |
Atomic read of size 4 at 0x00010a79f28c by thread T4 (mutexes: write M0): | |
#0 dict_setdefault_ref_lock_held dictobject.c:4315 (libpython3.13t.dylib:arm64+0xf6770) | |
#1 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#2 intern_common unicodeobject.c:15277 (libpython3.13t.dylib:arm64+0x1c9e68) | |
#3 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#4 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#5 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#6 atom_rule parser.c:14742 (libpython3.13t.dylib:arm64+0x18ac0) | |
#7 t_primary_rule parser.c:18963 (libpython3.13t.dylib:arm64+0x1b7e8) | |
#8 target_with_star_atom_rule parser.c:18463 (libpython3.13t.dylib:arm64+0x1b008) | |
#9 star_target_rule parser.c:18406 (libpython3.13t.dylib:arm64+0x1ad48) | |
#10 star_targets_rule parser.c:18148 (libpython3.13t.dylib:arm64+0x1a190) | |
#11 _loop1_14_rule parser.c:26269 (libpython3.13t.dylib:arm64+0x4311c) | |
#12 simple_stmt_rule parser.c:1717 (libpython3.13t.dylib:arm64+0x3fff4) | |
#13 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#14 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#15 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#16 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#17 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#18 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#19 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#20 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#21 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Previous write of size 4 at 0x00010a79f28c by thread T5 (mutexes: write M1): | |
#0 Py_SET_REFCNT object.h:406 (libpython3.13t.dylib:arm64+0x1ca75c) | |
#1 intern_common unicodeobject.c:15305 (libpython3.13t.dylib:arm64+0x1c9fd4) | |
#2 _PyUnicode_InternImmortal unicodeobject.c:15331 (libpython3.13t.dylib:arm64+0x199ef8) | |
#3 _PyPegen_new_identifier pegen.c:549 (libpython3.13t.dylib:arm64+0x5e08) | |
#4 _PyPegen_name_token pegen.c:586 (libpython3.13t.dylib:arm64+0x59ec) | |
#5 atom_rule parser.c:14742 (libpython3.13t.dylib:arm64+0x18ac0) | |
#6 t_primary_rule parser.c:18963 (libpython3.13t.dylib:arm64+0x1b7e8) | |
#7 target_with_star_atom_rule parser.c:18463 (libpython3.13t.dylib:arm64+0x1b008) | |
#8 star_target_rule parser.c:18406 (libpython3.13t.dylib:arm64+0x1ad48) | |
#9 star_targets_rule parser.c:18148 (libpython3.13t.dylib:arm64+0x1a190) | |
#10 _loop1_14_rule parser.c:26269 (libpython3.13t.dylib:arm64+0x4311c) | |
#11 simple_stmt_rule parser.c:1717 (libpython3.13t.dylib:arm64+0x3fff4) | |
#12 simple_stmts_rule parser.c:1612 (libpython3.13t.dylib:arm64+0x10440) | |
#13 statements_rule parser.c:1370 (libpython3.13t.dylib:arm64+0xfa4c) | |
#14 _PyPegen_parse parser.c:42288 (libpython3.13t.dylib:arm64+0xe7b0) | |
#15 _PyPegen_run_parser pegen.c:886 (libpython3.13t.dylib:arm64+0x6974) | |
#16 _PyPegen_run_parser_from_string pegen.c:1009 (libpython3.13t.dylib:arm64+0x6fc8) | |
#17 _PyParser_ASTFromString peg_api.c:13 (libpython3.13t.dylib:arm64+0x47b18) | |
#18 Py_CompileStringObject pythonrun.c:1480 (libpython3.13t.dylib:arm64+0x303b88) | |
#19 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#20 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Mutex M0 (0x000105503d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Mutex M1 (0x000105503cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Thread T4 (tid=18694764, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
Thread T5 (tid=18694765, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
SUMMARY: ThreadSanitizer: data race dictobject.c:4315 in dict_setdefault_ref_lock_held | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53260) | |
Read of size 8 at 0x000101c93f88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Previous write of size 8 at 0x000101c93f88 by thread T9 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_sequence-6af22ad9bbd66516:arm64+0x10006ec94) | |
Location is global '_PyRuntime' at 0x000101c8da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000105503d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Mutex M1 (0x0001055039c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5408) | |
Thread T4 (tid=18694764, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
Thread T9 (tid=18694769, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_sequence-6af22ad9bbd66516:arm64+0x1000b5640) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_generic_list_set ... ok | |
test sequence_length ... ok | |
test test_generic_list_get ... ok | |
test test_inplace_repeat ... ok | |
test test_option_list_get ... ok | |
test test_concat ... ok | |
test test_getitem ... ok | |
test test_inplace_concat ... ok | |
test test_repeat ... ok | |
test test_contains ... ok | |
test test_delitem ... ok | |
test test_setitem ... ok | |
test sequence_is_not_mapping ... ok | |
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.40s | |
ThreadSanitizer: reported 3 warnings | |
error: test failed, to rerun pass `--test test_sequence` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_sequence-6af22ad9bbd66516` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_serde.rs (target/debug/deps/test_serde-8d7540f16113f241) | |
running 0 tests | |
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s | |
Running tests/test_static_slots.rs (target/debug/deps/test_static_slots-c7245ff682072cf4) | |
test_static_slots-c7245ff682072cf4(53264,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 3 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53264) | |
Read of size 8 at 0x000105aa3f88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_static_slots-c7245ff682072cf4:arm64+0x10004fbb8) | |
Previous write of size 8 at 0x000105aa3f88 by thread T3 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_static_slots-c7245ff682072cf4:arm64+0x10004fbb8) | |
Location is global '_PyRuntime' at 0x000105a9da80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000109400100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_static_slots-c7245ff682072cf4:arm64+0x100093938) | |
Mutex M1 (0x000109400040) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_static_slots-c7245ff682072cf4:arm64+0x100093938) | |
Thread T2 (tid=18694794, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_static_slots-c7245ff682072cf4:arm64+0x100093b70) | |
Thread T3 (tid=18694795, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_static_slots-c7245ff682072cf4:arm64+0x100093b70) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test test_list ... ok | |
test test_getitem ... ok | |
test test_len ... ok | |
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_static_slots` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_static_slots-c7245ff682072cf4` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_string.rs (target/debug/deps/test_string-761711dbf527990d) | |
test_string-761711dbf527990d(53267,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test test_unicode_encode_error ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_super.rs (target/debug/deps/test_super-e94f515a31be3eec) | |
test_super-e94f515a31be3eec(53268,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 1 test | |
test test_call_super_method ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s | |
Running tests/test_text_signature.rs (target/debug/deps/test_text_signature-a9facd37aa85109d) | |
test_text_signature-a9facd37aa85109d(53269,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 11 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53269) | |
Read of size 8 at 0x000103ee7f88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_text_signature-a9facd37aa85109d:arm64+0x100071164) | |
Previous write of size 8 at 0x000103ee7f88 by thread T11 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_text_signature-a9facd37aa85109d:arm64+0x100071164) | |
Location is global '_PyRuntime' at 0x000103ee1a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107903d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_text_signature-a9facd37aa85109d:arm64+0x1000b97e0) | |
Mutex M1 (0x000107903840) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_text_signature-a9facd37aa85109d:arm64+0x1000b97e0) | |
Thread T4 (tid=18694828, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_text_signature-a9facd37aa85109d:arm64+0x1000b9a18) | |
Thread T11 (tid=18694835, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_text_signature-a9facd37aa85109d:arm64+0x1000b9a18) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test class_without_docs_or_signature ... ok | |
test test_raw_identifiers ... ok | |
test test_pyfn ... ok | |
test test_function ... ok | |
test class_with_docs ... ok | |
test class_with_signature_no_doc ... ok | |
test class_with_docs_and_signature ... ok | |
test test_auto_test_signature_method ... ok | |
test test_auto_test_signature_opt_out ... ok | |
test test_auto_test_signature_function ... ok | |
test test_methods ... ok | |
test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_text_signature` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_text_signature-a9facd37aa85109d` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_variable_arguments.rs (target/debug/deps/test_variable_arguments-3560d74ecd351962) | |
test_variable_arguments-3560d74ecd351962(53272,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 2 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53272) | |
Read of size 8 at 0x00010426ff88 by thread T2 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x1000532e8) | |
Previous write of size 8 at 0x00010426ff88 by thread T1 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x1000532e8) | |
Location is global '_PyRuntime' at 0x000104269a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000107c00100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x100096ba4) | |
Mutex M1 (0x000107c001c0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x100096ba4) | |
Thread T2 (tid=18694848, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x100096ddc) | |
Thread T1 (tid=18694847, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_variable_arguments-3560d74ecd351962:arm64+0x100096ddc) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
test variable_args ... ok | |
test variable_kwargs ... ok | |
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.35s | |
ThreadSanitizer: reported 1 warnings | |
error: test failed, to rerun pass `--test test_variable_arguments` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_variable_arguments-3560d74ecd351962` (signal: 6, SIGABRT: process abort signal) | |
Running tests/test_various.rs (target/debug/deps/test_various-b7b7534f42d1c28e) | |
test_various-b7b7534f42d1c28e(53276,0x1f8d0c840) malloc: nano zone abandoned due to inability to reserve vm space. | |
running 8 tests | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53276) | |
Read of size 8 at 0x00010e040030 by thread T2 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2036 (libpython3.13t.dylib:arm64+0x169610) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::h7786dc5eb0037a9c <null> (test_various-b7b7534f42d1c28e:arm64+0x100074f74) | |
Previous write of size 8 at 0x00010e040030 by thread T5 (mutexes: write M1): | |
#0 _PyType_FromMetaclass_impl typeobject.c:4724 (libpython3.13t.dylib:arm64+0x16b0f4) | |
#1 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#2 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h066e6d4dea4b3239 <null> (test_various-b7b7534f42d1c28e:arm64+0x10005ae14) | |
Mutex M0 (0x000105600100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Mutex M1 (0x000105603cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Thread T2 (tid=18694884, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
Thread T5 (tid=18694887, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2036 in _PyType_AllocNoTrack | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53276) | |
Read of size 8 at 0x000101ce7f88 by thread T4 (mutexes: write M0): | |
#0 bytes_hash bytesobject.c:1588 (libpython3.13t.dylib:arm64+0x74548) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_various-b7b7534f42d1c28e:arm64+0x100065490) | |
Previous write of size 8 at 0x000101ce7f88 by thread T6 (mutexes: write M1): | |
#0 bytes_hash bytesobject.c:1590 (libpython3.13t.dylib:arm64+0x74574) | |
#1 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#2 tuplehash tupleobject.c:328 (libpython3.13t.dylib:arm64+0x163dbc) | |
#3 PyObject_Hash object.c (libpython3.13t.dylib:arm64+0x11e470) | |
#4 dict_setdefault_ref_lock_held dictobject.c:4228 (libpython3.13t.dylib:arm64+0xf6574) | |
#5 PyDict_SetDefaultRef dictobject.c:4332 (libpython3.13t.dylib:arm64+0xf6420) | |
#6 _PyCompile_ConstCacheMergeOne compile.c:7606 (libpython3.13t.dylib:arm64+0x274ffc) | |
#7 _PyAssemble_MakeCodeObject assemble.c:752 (libpython3.13t.dylib:arm64+0x23d9bc) | |
#8 optimize_and_assemble compile.c:7704 (libpython3.13t.dylib:arm64+0x276b38) | |
#9 _PyAST_Compile compile.c:451 (libpython3.13t.dylib:arm64+0x27483c) | |
#10 Py_CompileStringObject pythonrun.c:1496 (libpython3.13t.dylib:arm64+0x303bbc) | |
#11 Py_CompileStringExFlags pythonrun.c:1509 (libpython3.13t.dylib:arm64+0x303c88) | |
#12 pyo3_ffi::cpython::pythonrun::Py_CompileString::hef78f0b06351f4c9 <null> (test_various-b7b7534f42d1c28e:arm64+0x100065490) | |
Location is global '_PyRuntime' at 0x000101ce1a80 (libpython3.13t.dylib+0x5e7f88) | |
Mutex M0 (0x000105603d80) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Mutex M1 (0x000105603c00) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Thread T4 (tid=18694886, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
Thread T6 (tid=18694888, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
SUMMARY: ThreadSanitizer: data race bytesobject.c:1588 in bytes_hash | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53276) | |
Read of size 8 at 0x00010e040038 by thread T2 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2036 (libpython3.13t.dylib:arm64+0x16961c) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::h7786dc5eb0037a9c <null> (test_various-b7b7534f42d1c28e:arm64+0x100074f74) | |
Previous write of size 8 at 0x00010e040038 by thread T5 (mutexes: write M1): | |
#0 type_ready typeobject.c:8219 (libpython3.13t.dylib:arm64+0x1742d4) | |
#1 PyType_Ready typeobject.c:8272 (libpython3.13t.dylib:arm64+0x16cef0) | |
#2 _PyType_FromMetaclass_impl typeobject.c:4791 (libpython3.13t.dylib:arm64+0x16b3e8) | |
#3 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#4 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h066e6d4dea4b3239 <null> (test_various-b7b7534f42d1c28e:arm64+0x10005ae14) | |
Mutex M0 (0x000105600100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Mutex M1 (0x000105603cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Thread T2 (tid=18694884, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
Thread T5 (tid=18694887, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2036 in _PyType_AllocNoTrack | |
================== | |
================== | |
WARNING: ThreadSanitizer: data race (pid=53276) | |
Atomic read of size 8 at 0x00010e0400b8 by thread T2 (mutexes: write M0): | |
#0 _PyType_AllocNoTrack typeobject.c:2038 (libpython3.13t.dylib:arm64+0x16963c) | |
#1 PyType_GenericAlloc typeobject.c:2072 (libpython3.13t.dylib:arm64+0x169588) | |
#2 _$LT$pyo3..impl_..pyclass_init..PyNativeTypeInitializer$LT$T$GT$$u20$as$u20$pyo3..impl_..pyclass_init..PyObjectInit$LT$T$GT$$GT$::into_new_object::inner::h7786dc5eb0037a9c <null> (test_various-b7b7534f42d1c28e:arm64+0x100074f74) | |
Previous write of size 8 at 0x00010e0400b8 by thread T5 (mutexes: write M1): | |
#0 type_ready typeobject.c:8242 (libpython3.13t.dylib:arm64+0x17609c) | |
#1 PyType_Ready typeobject.c:8272 (libpython3.13t.dylib:arm64+0x16cef0) | |
#2 _PyType_FromMetaclass_impl typeobject.c:4791 (libpython3.13t.dylib:arm64+0x16b3e8) | |
#3 PyType_FromSpec typeobject.c:4885 (libpython3.13t.dylib:arm64+0x16b628) | |
#4 pyo3::pyclass::create_type_object::PyTypeBuilder::build::h066e6d4dea4b3239 <null> (test_various-b7b7534f42d1c28e:arm64+0x10005ae14) | |
Mutex M0 (0x000105600100) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Mutex M1 (0x000105603cc0) created at: | |
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x329f0) | |
#1 std::sys::pal::unix::sync::mutex::Mutex::init::h018cb89f8c96de08 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abb90) | |
Thread T2 (tid=18694884, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
Thread T5 (tid=18694887, running) created by main thread at: | |
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:arm64+0x31050) | |
#1 std::sys::pal::unix::thread::Thread::new::h75b7e6c511636569 <null> (test_various-b7b7534f42d1c28e:arm64+0x1000abdc8) | |
SUMMARY: ThreadSanitizer: data race typeobject.c:2038 in _PyType_AllocNoTrack | |
================== | |
test return_custom_class ... ok | |
test pytuple_primitive_iter ... ok | |
test test_result_conversion ... ok | |
test intopytuple_primitive ... ok | |
test mut_ref_arg ... ok | |
test intopytuple_pyclass ... ok | |
test pytuple_pyclass_iter ... ok | |
test test_pickle ... ok | |
test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.48s | |
ThreadSanitizer: reported 4 warnings | |
error: test failed, to rerun pass `--test test_various` | |
Caused by: | |
process didn't exit successfully: `/Users/goldbaum/Documents/pyo3/target/debug/deps/test_various-b7b7534f42d1c28e` (signal: 6, SIGABRT: process abort signal) | |
Doc-tests pyo3 | |
running 533 tests | |
test src/conversion.rs - conversion::AsPyPointer (line 40) - compile ... ok | |
test src/conversion.rs - conversion::test_no_clone (line 600) - compile fail ... ok | |
test src/conversion.rs - conversion::IntoPy (line 106) ... ok | |
test src/err/mod.rs - err::PyErr::from_value (line 217) ... ok | |
test src/conversion.rs - conversion::AsPyPointer (line 20) ... ok | |
test src/conversion.rs - conversion::FromPyObject (line 410) ... ok | |
test src/err/mod.rs - err::PyErr::get_type (line 266) ... ok | |
test src/err/mod.rs - err::PyErr::clone_ref (line 709) ... ok | |
test src/err/mod.rs - err::PyErr::new (line 134) ... ok | |
test src/conversion.rs - conversion::IntoPy (line 128) ... ok | |
test src/conversion.rs - conversion::IntoPy (line 90) ... ok | |
test src/err/mod.rs - err::PyErr::new (line 152) ... ok | |
test src/err/mod.rs - err::PyErr::traceback (line 327) ... ok | |
test src/err/mod.rs - err::PyErr::value (line 289) ... ok | |
test src/err/mod.rs - err::PyErr::warn (line 604) ... ok | |
test src/err/mod.rs - err::PyErr::write_unraisable (line 567) ... ok | |
test src/exceptions.rs - exceptions::PyArithmeticError (line 403) ... ok | |
test src/exceptions.rs - exceptions::PyArithmeticError (line 432) ... ok | |
test src/exceptions.rs - exceptions::PyAssertionError (line 410) ... ok | |
test src/exceptions.rs - exceptions::PyAssertionError (line 439) ... ok | |
test src/exceptions.rs - exceptions::PyAttributeError (line 415) ... ok | |
test src/exceptions.rs - exceptions::PyAttributeError (line 444) ... ok | |
test src/exceptions.rs - exceptions::PyBaseException (line 379) ... ok | |
test src/exceptions.rs - exceptions::PyBaseException (line 408) ... ok | |
test src/exceptions.rs - exceptions::PyBlockingIOError (line 545) ... ok | |
test src/exceptions.rs - exceptions::PyBlockingIOError (line 574) ... ok | |
test src/exceptions.rs - exceptions::PyBrokenPipeError (line 550) ... ok | |
test src/exceptions.rs - exceptions::PyBrokenPipeError (line 579) ... ok | |
test src/exceptions.rs - exceptions::PyBufferError (line 420) ... ok | |
test src/exceptions.rs - exceptions::PyBufferError (line 449) ... ok | |
test src/exceptions.rs - exceptions::PyBytesWarning (line 758) ... ok | |
test src/exceptions.rs - exceptions::PyBytesWarning (line 787) ... ok | |
test src/exceptions.rs - exceptions::PyChildProcessError (line 555) ... ok | |
test src/exceptions.rs - exceptions::PyChildProcessError (line 584) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionAbortedError (line 565) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionAbortedError (line 594) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionError (line 560) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionError (line 589) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionRefusedError (line 570) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionRefusedError (line 599) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionResetError (line 575) ... ok | |
test src/exceptions.rs - exceptions::PyConnectionResetError (line 604) ... ok | |
test src/exceptions.rs - exceptions::PyDeprecationWarning (line 723) ... ok | |
test src/exceptions.rs - exceptions::PyDeprecationWarning (line 752) ... ok | |
test src/exceptions.rs - exceptions::PyEOFError (line 421) ... ok | |
test src/exceptions.rs - exceptions::PyEOFError (line 450) ... ok | |
test src/exceptions.rs - exceptions::PyEncodingWarning (line 770) ... ok | |
test src/exceptions.rs - exceptions::PyEncodingWarning (line 799) ... ok | |
test src/exceptions.rs - exceptions::PyEnvironmentError (line 621) ... ok | |
test src/exceptions.rs - exceptions::PyEnvironmentError (line 650) ... ok | |
test src/exceptions.rs - exceptions::PyException (line 386) ... ok | |
test src/exceptions.rs - exceptions::PyException (line 415) ... ok | |
test src/exceptions.rs - exceptions::PyFileExistsError (line 580) ... ok | |
test src/exceptions.rs - exceptions::PyFileExistsError (line 609) ... ok | |
test src/exceptions.rs - exceptions::PyFileNotFoundError (line 585) ... ok | |
test src/exceptions.rs - exceptions::PyFileNotFoundError (line 614) ... ok | |
test src/exceptions.rs - exceptions::PyFloatingPointError (line 422) ... ok | |
test src/exceptions.rs - exceptions::PyFloatingPointError (line 451) ... ok | |
test src/exceptions.rs - exceptions::PyFutureWarning (line 743) ... ok | |
test src/exceptions.rs - exceptions::PyFutureWarning (line 772) ... ok | |
test src/exceptions.rs - exceptions::PyGeneratorExit (line 398) ... ok | |
test src/exceptions.rs - exceptions::PyGeneratorExit (line 427) ... ok | |
test src/exceptions.rs - exceptions::PyIOError (line 626) ... ok | |
test src/exceptions.rs - exceptions::PyIOError (line 655) ... ok | |
test src/exceptions.rs - exceptions::PyImportError (line 436) ... ok | |
test src/exceptions.rs - exceptions::PyImportError (line 465) ... ok | |
test src/exceptions.rs - exceptions::PyImportWarning (line 748) ... ok | |
test src/exceptions.rs - exceptions::PyImportWarning (line 777) ... ok | |
test src/exceptions.rs - exceptions::PyIndexError (line 444) ... ok | |
test src/exceptions.rs - exceptions::PyIndexError (line 473) ... ok | |
test src/exceptions.rs - exceptions::PyInterruptedError (line 590) ... ok | |
test src/exceptions.rs - exceptions::PyInterruptedError (line 619) ... ok | |
test src/exceptions.rs - exceptions::PyIsADirectoryError (line 595) ... ok | |
test src/exceptions.rs - exceptions::PyIsADirectoryError (line 624) ... ok | |
test src/exceptions.rs - exceptions::PyKeyError (line 445) ... ok | |
test src/exceptions.rs - exceptions::PyKeyError (line 474) ... ok | |
test src/exceptions.rs - exceptions::PyKeyboardInterrupt (line 446) ... ok | |
test src/exceptions.rs - exceptions::PyKeyboardInterrupt (line 475) ... ok | |
test src/exceptions.rs - exceptions::PyLookupError (line 408) ... ok | |
test src/exceptions.rs - exceptions::PyLookupError (line 437) ... ok | |
test src/exceptions.rs - exceptions::PyMemoryError (line 451) ... ok | |
test src/exceptions.rs - exceptions::PyMemoryError (line 480) ... ok | |
test src/exceptions.rs - exceptions::PyModuleNotFoundError (line 438) ... ok | |
test src/exceptions.rs - exceptions::PyModuleNotFoundError (line 467) ... ok | |
test src/exceptions.rs - exceptions::PyNameError (line 452) ... ok | |
test src/exceptions.rs - exceptions::PyNameError (line 481) ... ok | |
test src/exceptions.rs - exceptions::PyNotADirectoryError (line 600) ... ok | |
test src/exceptions.rs - exceptions::PyNotADirectoryError (line 629) ... ok | |
test src/exceptions.rs - exceptions::PyNotImplementedError (line 468) ... ok | |
test src/exceptions.rs - exceptions::PyNotImplementedError (line 497) ... ok | |
test src/exceptions.rs - exceptions::PyOSError (line 428) ... ok | |
test src/exceptions.rs - exceptions::PyOSError (line 457) ... ok | |
test src/exceptions.rs - exceptions::PyOverflowError (line 453) ... ok | |
test src/exceptions.rs - exceptions::PyOverflowError (line 482) ... ok | |
test src/exceptions.rs - exceptions::PyPendingDeprecationWarning (line 728) ... ok | |
test src/exceptions.rs - exceptions::PyPendingDeprecationWarning (line 757) ... ok | |
test src/exceptions.rs - exceptions::PyPermissionError (line 605) ... ok | |
test src/exceptions.rs - exceptions::PyPermissionError (line 634) ... ok | |
test src/exceptions.rs - exceptions::PyProcessLookupError (line 610) ... ok | |
test src/exceptions.rs - exceptions::PyProcessLookupError (line 639) ... ok | |
test src/exceptions.rs - exceptions::PyRecursionError (line 463) ... ok | |
test src/exceptions.rs - exceptions::PyRecursionError (line 492) ... ok | |
test src/exceptions.rs - exceptions::PyReferenceError (line 482) ... ok | |
test src/exceptions.rs - exceptions::PyReferenceError (line 511) ... ok | |
test src/exceptions.rs - exceptions::PyResourceWarning (line 763) ... ok | |
test src/exceptions.rs - exceptions::PyResourceWarning (line 792) ... ok | |
test src/exceptions.rs - exceptions::PyRuntimeError (line 458) ... ok | |
test src/exceptions.rs - exceptions::PyRuntimeError (line 487) ... ok | |
test src/exceptions.rs - exceptions::PyRuntimeWarning (line 738) ... ok | |
test src/exceptions.rs - exceptions::PyRuntimeWarning (line 767) ... ok | |
test src/exceptions.rs - exceptions::PyStopAsyncIteration (line 387) ... ok | |
test src/exceptions.rs - exceptions::PyStopAsyncIteration (line 416) ... ok | |
test src/exceptions.rs - exceptions::PyStopIteration (line 392) ... ok | |
test src/exceptions.rs - exceptions::PyStopIteration (line 421) ... ok | |
test src/exceptions.rs - exceptions::PySyntaxError (line 474) ... ok | |
test src/exceptions.rs - exceptions::PySyntaxError (line 503) ... ok | |
test src/exceptions.rs - exceptions::PySyntaxWarning (line 733) ... ok | |
test src/exceptions.rs - exceptions::PySyntaxWarning (line 762) ... ok | |
test src/exceptions.rs - exceptions::PySystemError (line 487) ... ok | |
test src/exceptions.rs - exceptions::PySystemError (line 516) ... ok | |
test src/exceptions.rs - exceptions::PySystemExit (line 489) ... ok | |
test src/exceptions.rs - exceptions::PySystemExit (line 518) ... ok | |
test src/exceptions.rs - exceptions::PyTimeoutError (line 615) ... ok | |
test src/exceptions.rs - exceptions::PyTimeoutError (line 644) ... ok | |
test src/exceptions.rs - exceptions::PyTypeError (line 497) ... ok | |
test src/exceptions.rs - exceptions::PyTypeError (line 526) ... ok | |
test src/exceptions.rs - exceptions::PyUnboundLocalError (line 498) ... ok | |
test src/exceptions.rs - exceptions::PyUnboundLocalError (line 527) ... ok | |
test src/exceptions.rs - exceptions::PyUnicodeDecodeError::new_utf8 (line 671) ... ok | |
test src/exceptions.rs - exceptions::PyUnicodeError (line 504) ... ok | |
test src/exceptions.rs - exceptions::PyUnicodeError (line 533) ... ok | |
test src/exceptions.rs - exceptions::PyUnicodeWarning (line 753) ... ok | |
test src/exceptions.rs - exceptions::PyUnicodeWarning (line 782) ... ok | |
test src/exceptions.rs - exceptions::PyUserWarning (line 722) ... ok | |
test src/exceptions.rs - exceptions::PyUserWarning (line 751) ... ok | |
test src/impl_/pymethods.rs - impl_::pymethods::_call_traverse (line 246) - compile fail ... ok | |
test src/exceptions.rs - exceptions::PyValueError (line 538) ... ok | |
test src/exceptions.rs - exceptions::PyValueError (line 567) ... ok | |
test src/exceptions.rs - exceptions::PyWarning (line 721) ... ok | |
test src/exceptions.rs - exceptions::PyWarning (line 750) ... ok | |
test src/exceptions.rs - exceptions::PyZeroDivisionError (line 539) ... ok | |
test src/exceptions.rs - exceptions::PyZeroDivisionError (line 568) ... ok | |
test src/exceptions.rs - exceptions::create_exception (line 159) ... ok | |
test src/exceptions.rs - exceptions::import_exception (line 57) ... ok | |
test src/gil.rs - gil::prepare_freethreaded_python (line 53) ... ok | |
test src/instance.rs - instance::Py (line 896) - compile fail ... ok | |
test src/impl_/pymethods.rs - impl_::pymethods::_call_traverse (line 263) ... ok | |
test src/gil.rs - gil::with_embedded_python_interpreter (line 98) ... ok | |
test src/instance.rs - instance::Borrowed<'a,'py,T>::to_owned (line 659) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::as_super (line 377) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::borrow (line 236) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::borrow_mut (line 272) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::get (line 335) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::into_super (line 429) ... ok | |
test src/instance.rs - instance::Bound<'py,T>::new (line 77) ... ok | |
test src/instance.rs - instance::Py (line 1007) ... ok | |
test src/instance.rs - instance::Py (line 927) ... ok | |
test src/instance.rs - instance::Py (line 962) ... ok | |
test src/lib.rs - (line 137) ... ignored | |
test src/instance.rs - instance::Py<T>::borrow (line 1161) ... ok | |
test src/instance.rs - instance::Py<T>::borrow_mut (line 1199) ... ok | |
test src/instance.rs - instance::Py<T>::clone_ref (line 1349) ... ok | |
test src/lib.rs - doc_test::guide_async_await_md (line 550) ... ignored | |
test src/instance.rs - instance::Py<T>::drop_ref (line 1381) ... ok | |
test src/lib.rs - doc_test::guide_bnd_multiple_python_versions_md (line 515) ... ignored | |
test src/lib.rs - doc_test::guide_bnd_multiple_python_versions_md (line 543) ... ignored | |
test src/instance.rs - instance::Py<T>::get (line 1269) ... ok | |
test src/lib.rs - doc_test::guide_building_and_distribution_md (line 623) ... ignored | |
test src/lib.rs - doc_test::guide_building_and_distribution_md (line 651) ... ignored | |
test src/lib.rs - doc_test::guide_class_call (line 517) ... ignored | |
test src/lib.rs - doc_test::guide_class_call (line 573) ... ignored | |
test src/instance.rs - instance::Py<T>::getattr (line 1439) ... ok | |
test src/instance.rs - instance::Py<T>::new (line 1085) ... ok | |
test src/instance.rs - instance::Py<T>::setattr (line 1468) ... ok | |
test src/instance.rs - instance::PyObject::downcast_bound (line 1930) ... ok | |
test src/instance.rs - instance::PyObject::downcast_bound (line 1947) ... ok | |
test src/lib.rs - (line 186) ... ok | |
test src/lib.rs - (line 248) ... ok | |
test src/lib.rs - doc_test::guide_async_await_md (line 507) ... ok | |
test src/lib.rs - doc_test::guide_async_await_md (line 580) ... ok | |
test src/lib.rs - doc_test::guide_bnd_multiple_python_versions_md (line 597) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1011) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1054) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1080) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1105) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1131) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1194) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1548) ... ignored | |
test src/lib.rs - doc_test::guide_class_md (line 1554) ... ignored | |
test src/lib.rs - doc_test::guide_class_md (line 1560) ... ignored | |
test src/lib.rs - doc_test::guide_class_md (line 1566) ... ignored | |
test src/lib.rs - doc_test::guide_class_md (line 1572) ... ignored | |
test src/lib.rs - doc_test::guide_class_md (line 1168) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1217) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1245) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1270) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1291) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1315) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1723) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1731) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1330) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1369) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1393) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1588) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1440) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1611) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1632) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1653) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1676) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1698) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1799) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1753) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1819) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 1866) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 592) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 984) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 636) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 525) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 653) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 688) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 717) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 748) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 774) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 841) ... ok | |
test src/lib.rs - doc_test::guide_class_md (line 951) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 534) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 547) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 573) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 627) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 655) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 918) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 505) ... ok | |
test src/lib.rs - doc_test::guide_class_numeric (line 706) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 547) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 575) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 603) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 623) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 648) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 674) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 698) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 716) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 743) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 766) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 792) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 803) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 816) ... ok | |
test src/lib.rs - doc_test::guide_class_object (line 833) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 553) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 598) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 658) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 684) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 777) ... ok | |
test src/lib.rs - doc_test::guide_class_protocols_md (line 933) ... ok | |
test src/lib.rs - doc_test::guide_class_thread_safety_md (line 519) ... ok | |
test src/lib.rs - doc_test::guide_class_thread_safety_md (line 550) ... ok | |
test src/lib.rs - doc_test::guide_class_thread_safety_md (line 578) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1001) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1049) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1073) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1090) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1114) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1145) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1172) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 1229) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 511) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 547) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 578) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 602) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 646) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 677) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 700) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 726) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 765) ... ok | |
test src/lib.rs - doc_test::guide_conversions_traits_md (line 915) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 507) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 518) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 543) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 564) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 580) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 597) ... ok | |
test src/lib.rs - doc_test::guide_exception_md (line 612) ... ok | |
test src/lib.rs - doc_test::guide_faq_md (line 589) ... ok | |
test src/lib.rs - doc_test::guide_faq_md (line 629) ... ok | |
test src/lib.rs - doc_test::guide_faq_md (line 682) ... ok | |
test src/lib.rs - doc_test::guide_features_md (line 687) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 575) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 588) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 711) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 811) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 849) ... ok | |
test src/lib.rs - doc_test::guide_free_threading_md (line 871) ... ok | |
test src/lib.rs - doc_test::guide_function_error_handling_md (line 532) ... ok | |
test src/lib.rs - doc_test::guide_function_error_handling_md (line 564) ... ok | |
test src/lib.rs - doc_test::guide_function_error_handling_md (line 594) ... ok | |
test src/lib.rs - doc_test::guide_function_error_handling_md (line 650) ... ok | |
test src/lib.rs - doc_test::guide_function_error_handling_md (line 691) ... ok | |
test src/lib.rs - doc_test::guide_function_md (line 507) ... ok | |
test src/lib.rs - doc_test::guide_function_md (line 547) ... ok | |
test src/lib.rs - doc_test::guide_function_md (line 582) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1007) ... ignored | |
test src/lib.rs - doc_test::guide_function_md (line 610) ... ok | |
test src/lib.rs - doc_test::guide_function_md (line 677) ... ok | |
test src/lib.rs - doc_test::guide_function_md (line 694) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1157) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1164) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1181) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1188) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1202) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1212) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1250) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1267) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1288) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1322) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1346) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1379) ... ignored | |
test src/lib.rs - doc_test::guide_function_signature_md (line 513) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1408) ... ignored | |
test src/lib.rs - doc_test::guide_function_signature_md (line 541) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1457) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1477) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1519) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1549) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1598) ... ignored | |
test src/lib.rs - doc_test::guide_function_signature_md (line 582) ... ok | |
test src/lib.rs - doc_test::guide_function_signature_md (line 611) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1683) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1702) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1727) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_function_signature_md (line 631) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1769) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1781) ... ignored | |
test src/lib.rs - doc_test::guide_function_signature_md (line 721) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1031) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1828) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1952) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1998) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1853) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1930) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2039) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1056) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2165) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2171) ... ignored | |
test src/lib.rs - doc_test::guide_function_signature_md (line 679) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2144) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2203) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1080) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2268) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2277) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2231) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2324) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2311) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2346) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1388) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2376) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2402) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2413) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 1418) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2440) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1608) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2530) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2540) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2557) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2564) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2592) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1632) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 1740) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 587) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2610) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2149) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2215) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2056) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 715) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2239) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2356) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2454) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 2383) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 573) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 867) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 888) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 968) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 983) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 2486) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 606) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 648) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 682) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 696) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 740) ... ok | |
test src/lib.rs - doc_test::guide_parallelism_md (line 535) - compile ... ok | |
test src/lib.rs - doc_test::guide_parallelism_md (line 506) - compile ... ok | |
test src/lib.rs - doc_test::guide_parallelism_md (line 553) - compile ... ok | |
test src/lib.rs - doc_test::guide_parallelism_md (line 639) - compile ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 785) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 796) ... ok | |
test src/lib.rs - doc_test::guide_migration_md (line 829) ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 621) ... ignored | |
test src/lib.rs - doc_test::guide_migration_md (line 841) ... ok | |
test src/lib.rs - doc_test::guide_module_md (line 505) ... ok | |
test src/lib.rs - doc_test::guide_module_md (line 526) ... ok | |
test src/lib.rs - doc_test::guide_module_md (line 568) ... ok | |
test src/lib.rs - doc_test::guide_module_md (line 611) ... ok | |
test src/lib.rs - doc_test::guide_module_md (line 654) ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 562) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 757) ... ignored | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 791) - compile ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 509) ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 536) ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 583) ... ok | |
test src/lib.rs - doc_test::guide_performance_md (line 637) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 510) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 534) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 565) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 650) ... ignored | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 611) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 683) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 658) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 827) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 525) ... ok | |
test src/lib.rs - doc_test::guide_pfr_calling_existing_code_md (line 892) ... ok | |
test src/lib.rs - doc_test::guide_pfr_function_calls_md (line 519) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 595) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_pfr_function_calls_md (line 564) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 566) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 665) ... ignored | |
test src/lib.rs - doc_test::guide_types_md (line 676) ... ignored | |
test src/lib.rs - doc_test::guide_types_md (line 689) ... ignored | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 619) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 664) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 831) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 882) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 559) ... ok | |
test src/lib.rs - doc_test::guide_trait_bounds_md (line 959) ... ok | |
test src/lib.rs - pyclass (line 498) ... ignored | |
test src/lib.rs - doc_test::guide_types_md (line 575) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 606) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 622) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 642) ... ok | |
test src/marker.rs - marker (line 40) - compile fail ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 727) ... ok | |
test src/marker.rs - marker (line 70) - compile ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 748) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 767) ... ok | |
test src/marker.rs - marker::Python<'py>::allow_threads (line 495) - compile fail ... ok | |
test src/lib.rs - doc_test::readme_md (line 579) ... ok | |
test src/lib.rs - doc_test::guide_types_md (line 793) ... ok | |
test src/macros.rs - macros::py_run (line 11) ... ok | |
test src/lib.rs - doc_test::readme_md (line 649) ... ok | |
test src/marker.rs - marker (line 21) ... ok | |
test src/marker.rs - marker::Ungil (line 153) - compile fail ... ok | |
test src/macros.rs - macros::py_run (line 25) ... ok | |
test src/marker.rs - marker::Ungil (line 169) - compile ... ok | |
test src/marker.rs - marker (line 98) ... ok | |
test src/macros.rs - macros::py_run (line 63) ... ok | |
test src/pycell.rs - pycell (line 151) ... ignored | |
test src/marker.rs - marker::Python<'_>::with_gil (line 386) ... ok | |
test src/pycell.rs - pycell (line 44) ... ignored | |
test src/marker.rs - marker::Python<'py>::allow_threads (line 466) ... ok | |
test src/marker.rs - marker::Python<'py>::check_signals (line 803) ... ok | |
test src/marker.rs - marker::Python<'py>::eval (line 534) ... ok | |
test src/marker.rs - marker::Python<'py>::run (line 575) ... ok | |
test src/marker.rs - marker::Python<'py>::version (line 754) ... ok | |
test src/marker.rs - marker::Python<'py>::version_info (line 774) ... ok | |
test src/prelude.rs - prelude (line 6) ... ok | |
test src/marshal.rs - marshal::dumps (line 24) ... ok | |
test src/pycell.rs - pycell (line 25) ... ok | |
test src/pycell.rs - pycell (line 120) ... ok | |
test src/pycell.rs - pycell (line 80) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call0 (line 448) - compile ... ok | |
test src/pycell.rs - pycell::PyRef (line 222) ... ok | |
test src/pycell.rs - pycell::PyRef<'p,T>::as_super (line 388) ... ok | |
test src/pycell.rs - pycell::PyRef<'p,T>::into_super (line 333) ... ok | |
test src/pyclass.rs - pyclass::CompareOp::matches (line 58) ... ok | |
test src/pyclass_init.rs - pyclass_init::PyClassInitializer (line 24) ... ok | |
test src/pyclass_init.rs - pyclass_init::PyClassInitializer<T>::add_subclass (line 95) ... ok | |
test src/sync.rs - sync::GILOnceCell (line 104) ... ok | |
test src/sync.rs - sync::GILOnceCell<Py<T>>::import (line 322) ... ok | |
test src/sync.rs - sync::intern (line 378) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call (line 412) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call1 (line 470) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call_method (line 506) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call_method0 (line 553) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::compare (line 174) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::call_method1 (line 590) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::compare (line 191) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::downcast (line 712) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::downcast (line 731) ... ok | |
test src/types/bytearray.rs - types::bytearray::PyByteArrayMethods::as_bytes (line 212) - compile ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::downcast_exact (line 797) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::downcast_into (line 764) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::getattr (line 104) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::hasattr (line 78) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::is_callable (line 383) ... ok | |
test src/types/capsule.rs - types::capsule::PyCapsule::new (line 76) - compile fail ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::rich_compare (line 228) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::setattr (line 130) ... ok | |
test src/types/any.rs - types::any::PyAnyMethods::try_iter (line 671) ... ok | |
test src/types/bytearray.rs - types::bytearray::PyByteArray::new_with (line 51) ... ok | |
test src/types/bytearray.rs - types::bytearray::PyByteArrayMethods::as_bytes (line 159) ... ok | |
test src/types/bytearray.rs - types::bytearray::PyByteArrayMethods::to_vec (line 250) ... ok | |
test src/types/bytes.rs - types::bytes::PyBytes (line 28) ... ok | |
test src/types/bytes.rs - types::bytes::PyBytes::new_with (line 83) ... ok | |
test src/types/capsule.rs - types::capsule::PyCapsule (line 23) ... ok | |
test src/types/module.rs - types::module::PyModule::import (line 73) - compile ... ok | |
test src/types/capsule.rs - types::capsule::PyCapsule::new (line 62) ... ok | |
test src/types/capsule.rs - types::capsule::PyCapsuleMethods::set_context (line 196) ... ok | |
test src/types/function.rs - types::function::PyCFunction::new_closure (line 86) ... ok | |
test src/types/iterator.rs - types::iterator::PyIterator (line 13) ... ok | |
test src/types/list.rs - types::list::Bound<'py,PyList>::get_item (line 298) ... ok | |
test src/types/list.rs - types::list::PyList::new (line 81) ... ok | |
test src/types/list.rs - types::list::PyListMethods::get_item (line 167) ... ok | |
test src/types/mod.rs - types::iter (line 60) ... ok | |
test src/types/module.rs - types::module::PyModule::from_code (line 133) ... ok | |
test src/types/module.rs - types::module::PyModule::from_code (line 151) ... ok | |
test src/types/module.rs - types::module::PyModule::new (line 41) ... ok | |
test src/types/module.rs - types::module::PyModuleMethods::add (line 237) ... ok | |
test src/types/module.rs - types::module::PyModuleMethods::add_class (line 273) ... ok | |
test src/types/module.rs - types::module::PyModuleMethods::add_function (line 362) ... ok | |
test src/types/module.rs - types::module::PyModuleMethods::add_submodule (line 326) ... ok | |
test src/types/module.rs - types::module::PyModuleMethods::gil_used (line 407) ... ok | |
test src/types/pysuper.rs - types::pysuper::PySuper::new (line 24) ... ok | |
test src/types/string.rs - types::string::PyString (line 145) ... ok | |
test src/types/traceback.rs - types::traceback::PyTracebackMethods::format (line 37) ... ok | |
test src/types/tuple.rs - types::tuple::PyTuple::new (line 74) ... ok | |
test src/types/tuple.rs - types::tuple::PyTupleMethods::get_item (line 166) ... ok | |
test src/types/weakref/anyref.rs - types::weakref::anyref::PyWeakrefMethods::get_object (line 333) ... ok | |
test src/types/weakref/anyref.rs - types::weakref::anyref::PyWeakrefMethods::upgrade (line 272) ... ok | |
test src/types/weakref/anyref.rs - types::weakref::anyref::PyWeakrefMethods::upgrade_as (line 43) ... ok | |
test src/types/weakref/anyref.rs - types::weakref::anyref::PyWeakrefMethods::upgrade_as_exact (line 193) ... ok | |
test src/types/weakref/anyref.rs - types::weakref::anyref::PyWeakrefMethods::upgrade_as_unchecked (line 123) ... ok | |
test src/types/weakref/proxy.rs - types::weakref::proxy::PyWeakrefProxy::new (line 38) ... ok | |
test src/types/weakref/proxy.rs - types::weakref::proxy::PyWeakrefProxy::new_with (line 95) ... ok | |
test src/types/weakref/reference.rs - types::weakref::reference::PyWeakrefReference::new (line 49) ... ok | |
test src/types/weakref/reference.rs - types::weakref::reference::PyWeakrefReference::new_with (line 105) ... ok | |
test src/version.rs - version::PythonVersionInfo (line 7) ... ok | |
test result: ok. 473 passed; 0 failed; 60 ignored; 0 measured; 0 filtered out; finished in 52.76s | |
error: 25 targets failed: | |
`--lib` | |
`--test test_arithmetics` | |
`--test test_bytes` | |
`--test test_class_basics` | |
`--test test_class_conversion` | |
`--test test_class_formatting` | |
`--test test_class_new` | |
`--test test_compile_error` | |
`--test test_declarative_module` | |
`--test test_default_impls` | |
`--test test_enum` | |
`--test test_frompyobject` | |
`--test test_gc` | |
`--test test_getter_setter` | |
`--test test_mapping` | |
`--test test_methods` | |
`--test test_module` | |
`--test test_proto_methods` | |
`--test test_pyfunction` | |
`--test test_pyself` | |
`--test test_sequence` | |
`--test test_static_slots` | |
`--test test_text_signature` | |
`--test test_variable_arguments` | |
`--test test_various` | |
nox > Command cargo test --no-fail-fast failed with exit code 101 | |
nox > Session test failed. | |
goldbaum at Nathans-MBP in ~/Documents/pyo3 on fix-freelist | |
± |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment