Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
running 409 tests
test buffer::tests::test_compatible_size ... ok
test conversions::array::min_const_generics::tests::array_try_from_fn ... ok
test conversion::tests::test_try_from_exact ... ok
test conversions::array::min_const_generics::tests::test_extract_bytearray_to_array ... ok
test conversions::osstr::tests::test_intopy_roundtrip ... ok
test conversion::tests::test_try_from ... ok
test buffer::tests::test_bytes_buffer ... ok
test conversions::array::tests::test_extract_invalid_sequence_length ... ok
test conversions::array::tests::test_extract_small_bytearray_to_array ... ok
test conversion::tests::test_try_from_unchecked ... ok
test conversions::osstr::tests::test_non_utf8_conversion ... ok
test buffer::tests::test_array_buffer ... ok
test conversions::path::tests::test_intopy_roundtrip ... ok
test conversions::path::tests::test_topyobject_roundtrip ... ok
test err::tests::no_error ... ok
test err::tests::err_display ... ok
test conversions::osstr::tests::test_topyobject_roundtrip ... ok
test conversions::path::tests::test_non_utf8_conversion ... ok
test err::tests::invalid_error_type ... ok
test err::tests::test_pyerr_send_sync ... ok
test err::tests::deprecations ... ok
test err::tests::err_debug ... ok
test err::tests::set_valueerror ... ok
test err::tests::fetching_panic_exception_resumes_unwind - should panic ... ok
test err::tests::test_pyerr_cause ... ok
test err::tests::set_typeerror ... ok
test err::impls::tests::io_errors ... ok
test exceptions::socket::tests::gaierror ... ok
test exceptions::tests::PyArithmeticError ... ok
test exceptions::tests::PyAssertionError ... ok
test exceptions::socket::tests::timeout ... ok
test exceptions::socket::tests::herror ... ok
test exceptions::tests::PyBaseException ... ok
test exceptions::tests::PyAttributeError ... ok
test exceptions::tests::PyBlockingIOError ... ok
test exceptions::tests::PyBrokenPipeError ... ok
test exceptions::tests::PyBufferError ... 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::PyEOFError ... ok
test exceptions::tests::PyEnvironmentError ... ok
test exceptions::tests::PyException ... ok
test exceptions::tests::PyFileExistsError ... ok
test exceptions::tests::PyFileNotFoundError ... ok
test exceptions::tests::PyFloatingPointError ... ok
test exceptions::tests::PyGeneratorExit ... ok
test exceptions::tests::PyIOError ... ok
test exceptions::tests::PyImportError ... ok
test exceptions::tests::PyIndexError ... ok
test exceptions::tests::PyInterruptedError ... ok
test exceptions::tests::PyIsADirectoryError ... ok
test exceptions::tests::PyKeyError ... ok
test exceptions::tests::PyKeyboardInterrupt ... ok
test exceptions::tests::PyLookupError ... ok
test exceptions::tests::PyMemoryError ... ok
test exceptions::tests::PyModuleNotFoundError ... ok
test exceptions::tests::PyNameError ... ok
test exceptions::tests::PyNotADirectoryError ... ok
test exceptions::tests::PyNotImplementedError ... ok
test exceptions::tests::PyOSError ... ok
test exceptions::tests::PyOverflowError ... ok
test exceptions::tests::PyPermissionError ... ok
test exceptions::tests::PyProcessLookupError ... ok
test exceptions::tests::PyRecursionError ... ok
test exceptions::tests::PyReferenceError ... 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::PySystemExit ... ok
test exceptions::tests::PyTimeoutError ... ok
test exceptions::tests::PyTypeError ... ok
test exceptions::tests::PyUnboundLocalError ... ok
test exceptions::tests::PyUnicodeDecodeError ... ok
test exceptions::tests::PyUnicodeEncodeError ... ok
test exceptions::tests::PyUnicodeError ... ok
test exceptions::tests::PyUnicodeTranslateError ... ok
test exceptions::tests::PyValueError ... ok
test exceptions::tests::PyZeroDivisionError ... ok
test exceptions::tests::custom_exception ... ok
test exceptions::tests::custom_exception_doc ... ok
test exceptions::tests::custom_exception_doc_expr ... ok
test exceptions::tests::native_exception_chain ... ok
test exceptions::tests::native_exception_debug ... ok
test exceptions::tests::native_exception_display ... ok
test exceptions::tests::test_check_exception ... ok
test exceptions::tests::unicode_decode_error ... ok
test ffi::cpython::unicodeobject::tests::ascii ... ok
test ffi::cpython::unicodeobject::tests::ascii_object_bitfield ... ok
test ffi::cpython::unicodeobject::tests::ucs4 ... ok
test ffi::datetime::tests::test_date_fromtimestamp ... ok
test exceptions::tests::test_check_exception_nested ... ok
test ffi::datetime::tests::test_datetime_fromtimestamp ... ok
test ffi::datetime::tests::test_utc_timezone ... ok
test gil::tests::dropping_gil_does_not_invalidate_references ... ok
test gil::tests::test_allow_threads ... ok
test gil::tests::test_clone_in_other_thread ... ok
test gil::tests::test_clone_without_gil ... ok
test gil::tests::test_clone_with_gil ... ok
test gil::tests::test_gil_counts ... ok
test gil::tests::test_owned ... ok
test gil::tests::test_owned_nested ... ok
test gil::tests::test_pyobject_drop_with_gil_decreases_refcnt ... ok
test gil::tests::test_pyobject_drop_without_gil_doesnt_decrease_refcnt ... ok
test gil::tests::test_update_counts_does_not_deadlock ... ok
test impl_::extract_argument::tests::keyword_not_string ... ok
test impl_::extract_argument::tests::push_parameter_list_empty ... ok
test impl_::extract_argument::tests::missing_required_arguments ... 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::unexpected_keyword_argument ... ok
test impl_::pymodule::tests::module_def_new ... ok
test impl_::pymodule::tests::module_init ... ok
test instance::tests::py_from_dict ... ok
test instance::tests::pyobject_from_py ... ok
test instance::tests::test_call_for_non_existing_method ... ok
test python::tests::test_acquire_gil ... ok
test marshal::tests::marshal_roundtrip ... ok
test python::tests::test_allow_threads_panics_safely ... ok
test python::tests::test_eval ... ok
test python::tests::test_python_version_info ... ok
test python::tests::test_python_version_info_parse ... ok
test python::tests::test_allow_threads_releases_and_acquires_gil ... ok
test test_hygiene::pyfunction::invoke_wrap_pyfunction ... ok
test types::any::tests::test_any_contains ... ok
test types::any::tests::test_any_isinstance ... ok
test types::any::tests::test_any_isinstance_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_dir ... ok
test types::any::tests::test_nan_eq ... ok
test types::any::tests::test_type ... ok
test types::boolobject::tests::test_false ... ok
test types::boolobject::tests::test_true ... ok
test types::bytearray::tests::test_as_bytes_mut ... ok
test types::bytearray::tests::test_as_bytes ... ok
test types::bytearray::tests::test_byte_array_new_with ... 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_from ... ok
test types::bytearray::tests::test_from_err ... ok
test types::bytearray::tests::test_len ... ok
test types::bytearray::tests::test_resize ... ok
test types::bytearray::tests::test_to_vec ... ok
test types::bytes::tests::test_bytes_index ... ok
test types::bytes::tests::test_bytes_new_with ... ok
test types::bytes::tests::test_bytes_new_with_error ... ok
test types::bytes::tests::test_bytes_new_with_zero_initialised ... ok
test types::bytes::tests::test_extract_bytes ... ok
test types::capsule::tests::test_pycapsule_context ... ok
test types::capsule::tests::test_pycapsule_destructor ... ok
test types::capsule::tests::test_pycapsule_func ... ok
test types::capsule::tests::test_pycapsule_import ... ok
test types::capsule::tests::test_pycapsule_struct ... 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_abs ... ok
test types::complex::not_limited_impls::tests::test_add ... 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_neg ... ok
test types::complex::not_limited_impls::tests::test_pow ... ok
test types::complex::not_limited_impls::tests::test_sub ... ok
test types::complex::tests::test_from_double ... ok
test types::datetime::tests::test_new_with_fold ... ok
test types::dict::tests::dict_as_mapping ... ok
test types::dict::tests::test_btreemap_into_dict ... ok
test types::dict::tests::test_btreemap_into_py ... ok
test types::dict::tests::test_contains ... ok
test types::dict::tests::test_btreemap_to_python ... ok
test types::dict::tests::test_copy ... ok
test types::dict::tests::test_del_item ... ok
test types::dict::tests::test_del_item_does_not_update_original_object ... ok
test types::dict::tests::test_from_sequence ... ok
test types::dict::tests::test_from_sequence_err ... ok
test types::dict::tests::test_get_item ... ok
test types::dict::tests::test_hashmap_into_dict ... ok
test types::dict::tests::test_hashmap_into_python ... ok
test types::dict::tests::test_hashmap_to_python ... ok
test types::dict::tests::test_items ... ok
test types::dict::tests::test_iter ... ok
test types::dict::tests::test_into_iter ... ok
test types::dict::tests::test_iter_size_hint ... ok
test types::dict::tests::test_keys ... ok
test types::dict::tests::test_len ... ok
test types::dict::tests::test_new ... ok
test types::dict::tests::test_set_item_does_not_update_original_object ... ok
test types::dict::tests::test_set_item ... ok
test types::dict::tests::test_set_item_refcnt ... ok
test types::dict::tests::test_slice_into_dict ... ok
test types::dict::tests::test_values ... ok
test types::dict::tests::test_vec_into_dict ... ok
test types::floatob::tests::int_to_float ... ok
test types::floatob::tests::to_from_f32 ... ok
test types::floatob::tests::test_as_double_macro ... ok
test types::floatob::tests::to_from_f64 ... ok
test types::iterator::tests::fibonacci_generator ... ok
test types::iterator::tests::int_not_iterable ... ok
test types::iterator::tests::iter_item_refcnt ... ok
test types::iterator::tests::iter_refcnt ... ok
test types::iterator::tests::iterator_try_from ... ok
test types::iterator::tests::test_as_ref ... ok
test types::iterator::tests::test_into_ref ... ok
test types::iterator::tests::vec_iter ... ok
test types::list::tests::bad_clone_mem_leaks ... ok
test types::list::tests::test_append ... ok
test types::list::tests::overflowing_size - should panic ... ok
test types::list::tests::test_append_refcnt ... ok
test types::list::tests::test_array_into_py ... ok
test types::list::tests::test_extract ... ok
test types::list::tests::test_get_item ... ok
test types::list::tests::test_get_slice ... ok
test types::list::tests::test_insert ... ok
test types::list::tests::test_insert_refcnt ... ok
test types::list::tests::test_into_iter ... ok
test types::list::tests::test_iter_size_hint ... ok
test types::list::tests::test_len ... ok
test types::list::tests::test_iter ... ok
test types::list::tests::test_list_contains ... ok
test types::list::tests::test_list_del_item ... ok
test types::list::tests::test_list_del_slice ... ok
test types::list::tests::test_list_get_item_invalid_index ... ok
test types::list::tests::test_list_get_item_sanity ... 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_index_trait ... ok
test types::list::tests::test_list_index_trait_panic - should panic ... ok
test types::list::tests::test_list_index_trait_range_from_panic - should panic ... ok
test types::list::tests::test_list_index_trait_range_panic_end - should panic ... ok
test types::list::tests::test_list_index_trait_range_panic_start - should panic ... ok
test types::list::tests::test_list_index_trait_range_panic_wrong_order - should panic ... ok
test types::list::tests::test_list_index_trait_ranges ... ok
test types::list::tests::test_list_set_slice ... 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::test_set_item_refcnt ... ok
test types::list::tests::test_sort ... ok
test types::list::tests::too_long_iterator - should panic ... ok
test types::mapping::tests::test_as_ref ... ok
test types::list::tests::too_short_iterator - should panic ... ok
test types::mapping::tests::test_del_item ... ok
test types::mapping::tests::test_get_item ... ok
test types::mapping::tests::test_into_ref ... ok
test types::mapping::tests::test_items ... ok
test types::mapping::tests::test_keys ... 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::module::tests::module_import_and_name ... ok
test types::num::test_128bit_intergers::test_i128_max ... ok
test types::num::test_128bit_intergers::test_i128_min ... ok
test types::num::test_128bit_intergers::test_i128_overflow ... ok
test types::num::test_128bit_intergers::test_u128_max ... ok
test types::num::test_128bit_intergers::test_u128_overflow ... ok
test types::num::tests::i128::from_py_float_type_error ... ok
test types::num::tests::i128::from_py_string_type_error ... ok
test types::num::tests::i128::to_py_object_and_back ... ok
test types::num::tests::i16::from_py_float_type_error ... ok
test types::num::tests::i16::from_py_string_type_error ... ok
test types::num::tests::i16::to_py_object_and_back ... ok
test types::num::tests::i32::from_py_float_type_error ... ok
test types::num::tests::i32::from_py_string_type_error ... ok
test types::num::tests::i32::to_py_object_and_back ... ok
test types::num::tests::i64::from_py_float_type_error ... ok
test types::num::tests::i64::from_py_string_type_error ... ok
test types::num::tests::i64::to_py_object_and_back ... ok
test types::num::tests::i8::from_py_float_type_error ... ok
test types::num::tests::i8::from_py_string_type_error ... ok
test types::num::tests::i8::to_py_object_and_back ... ok
test types::num::tests::isize::from_py_float_type_error ... ok
test types::num::tests::isize::from_py_string_type_error ... ok
test types::num::tests::isize::to_py_object_and_back ... ok
test types::num::tests::test_i64_max ... ok
test types::num::tests::test_i64_min ... ok
test types::num::tests::test_u32_max ... ok
test types::num::tests::test_u64_max ... ok
test types::num::tests::u128::from_py_float_type_error ... ok
test types::num::tests::u128::from_py_string_type_error ... ok
test types::num::tests::u128::to_py_object_and_back ... ok
test types::num::tests::u16::from_py_float_type_error ... ok
test types::num::tests::u16::from_py_string_type_error ... ok
test types::num::tests::u16::to_py_object_and_back ... ok
test types::num::tests::u32::from_py_float_type_error ... ok
test types::num::tests::u32::from_py_string_type_error ... ok
test types::num::tests::u32::to_py_object_and_back ... ok
test types::num::tests::u64::from_py_float_type_error ... ok
test types::num::tests::u64::from_py_string_type_error ... ok
test types::num::tests::u64::to_py_object_and_back ... ok
test types::num::tests::u8::from_py_float_type_error ... ok
test types::num::tests::u8::from_py_string_type_error ... ok
test types::num::tests::u8::to_py_object_and_back ... ok
test types::num::tests::usize::from_py_float_type_error ... ok
test types::num::tests::usize::from_py_string_type_error ... ok
test types::num::tests::usize::to_py_object_and_back ... ok
test types::sequence::tests::test_as_ref ... ok
test types::sequence::tests::test_del_slice ... ok
test types::sequence::tests::test_extract_bytearray_to_vec ... ok
test types::sequence::tests::test_extract_range_to_vec ... ok
test types::sequence::tests::test_extract_tuple_to_vec ... ok
test types::sequence::tests::test_into_ref ... ok
test types::sequence::tests::test_list_coercion ... ok
test types::sequence::tests::test_lists_coerce_to_tuples ... ok
test types::sequence::tests::test_numbers_are_not_sequences ... ok
test types::sequence::tests::test_seq_concat ... ok
test types::sequence::tests::test_seq_concat_string ... ok
test types::sequence::tests::test_seq_contains ... ok
test types::sequence::tests::test_seq_count ... ok
test types::sequence::tests::test_seq_del_item ... ok
test types::sequence::tests::test_seq_empty ... ok
test types::sequence::tests::test_seq_get_item ... ok
test types::sequence::tests::test_seq_get_slice ... ok
test types::sequence::tests::test_seq_index ... ok
test types::sequence::tests::test_seq_index_trait ... ok
test types::sequence::tests::test_seq_index_trait_panic - should panic ... ok
test types::sequence::tests::test_seq_index_trait_range_from_panic - should panic ... ok
test types::sequence::tests::test_seq_index_trait_range_panic_end - should panic ... ok
test types::sequence::tests::test_seq_index_trait_range_panic_start - should panic ... ok
test types::sequence::tests::test_seq_index_trait_range_panic_wrong_order - should panic ... ok
test types::sequence::tests::test_seq_index_trait_ranges ... ok
test types::sequence::tests::test_seq_inplace ... ok
test types::sequence::tests::test_seq_is_empty ... ok
test types::sequence::tests::test_seq_iter ... ok
test types::sequence::tests::test_seq_repeat ... ok
test types::sequence::tests::test_seq_set_item ... ok
test types::sequence::tests::test_seq_set_item_refcnt ... ok
test types::sequence::tests::test_seq_strings ... ok
test types::sequence::tests::test_seq_try_from_unchecked ... ok
test types::sequence::tests::test_set_slice ... ok
test types::sequence::tests::test_strings_are_sequences ... ok
test types::sequence::tests::test_strings_coerce_to_lists ... ok
test types::sequence::tests::test_tuple_coercion ... ok
test types::set::tests::test_extract_btreeset ... ok
test types::set::tests::test_extract_hashset ... ok
test types::set::tests::test_frozenset_contains ... ok
test types::set::tests::test_frozenset_empty ... ok
test types::set::tests::test_frozenset_iter ... ok
test types::set::tests::test_frozenset_new_and_len ... ok
test types::set::tests::test_set_add ... ok
test types::set::tests::test_set_clear ... ok
test types::set::tests::test_set_contains ... ok
test types::set::tests::test_set_discard ... ok
test types::set::tests::test_set_empty ... ok
test types::set::tests::test_set_into_py ... ok
test types::set::tests::test_set_iter ... ok
test types::set::tests::test_set_iter_size_hint ... ok
test types::set::tests::test_set_len ... ok
test types::set::tests::test_set_new ... ok
test types::set::tests::test_set_pop ... ok
test types::string::tests::test_debug_string ... ok
test types::string::tests::test_display_string ... ok
test types::string::tests::test_extract_char ... ok
test types::string::tests::test_extract_char_err ... ok
test types::string::tests::test_extract_str ... ok
test types::string::tests::test_non_bmp ... ok
test types::string::tests::test_string_data_ucs1 ... ok
test types::string::tests::test_string_data_ucs1_invalid ... ok
test types::string::tests::test_string_data_ucs2 ... ok
test types::string::tests::test_string_data_ucs2_invalid ... 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_to_str_ascii ... ok
test types::string::tests::test_to_str_surrogate ... ok
test types::string::tests::test_to_str_unicode ... ok
test types::string::tests::test_to_string_lossy ... ok
test types::traceback::tests::format_traceback ... ok
test types::tuple::tests::bad_clone_mem_leaks ... ok
test types::tuple::tests::bad_clone_mem_leaks_2 ... ok
test types::tuple::tests::overflowing_size - should panic ... ok
test types::tuple::tests::test_as_slice ... ok
test types::tuple::tests::test_into_iter ... ok
test types::tuple::tests::test_iter ... ok
test types::tuple::tests::test_len ... ok
test types::tuple::tests::test_new ... ok
test types::tuple::tests::test_slice ... ok
test types::tuple::tests::test_tuple_contains ... 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_index_trait ... ok
test types::tuple::tests::test_tuple_index_trait_panic - should panic ... ok
test types::tuple::tests::test_tuple_index_trait_range_from_panic - should panic ... ok
test types::tuple::tests::test_tuple_index_trait_range_panic_end - should panic ... ok
test types::tuple::tests::test_tuple_index_trait_range_panic_start - should panic ... ok
test types::tuple::tests::test_tuple_index_trait_range_panic_wrong_order - should panic ... ok
test types::tuple::tests::test_tuple_index_trait_ranges ... ok
test types::tuple::tests::test_tuple_lengths_up_to_12 ... ok
test types::tuple::tests::too_long_iterator - should panic ... ok
test types::tuple::tests::too_short_iterator - should panic ... ok
test types::typeobject::tests::test_type_is_subclass ... ok
test types::typeobject::tests::test_type_is_subclass_of ... ok
test types::typeobject::tests::type_is_instance ... ok
test exceptions::asyncio::tests::CancelledError ... ok
test exceptions::asyncio::tests::IncompleteReadError ... ok
test exceptions::asyncio::tests::InvalidStateError ... ok
test exceptions::asyncio::tests::LimitOverrunError ... ok
test exceptions::asyncio::tests::QueueFull ... ok
test exceptions::asyncio::tests::TimeoutError ... ok
test exceptions::asyncio::tests::QueueEmpty ... ok
test types::num::test_128bit_intergers::test_u128_roundtrip ... ok
test types::num::test_128bit_intergers::test_i128_roundtrip ... ok

test result: ok. 409 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

running 14 tests
test return_not_implemented::bitwise ... ok
test binary_arithmetic ... ok
test return_not_implemented::reverse_arith ... ok
test rich_comparisons ... ok
test inplace_operations ... ok
test return_not_implemented::arith ... ok
test unary_arithmetic ... ok
test return_not_implemented::ordering ... ok
test return_not_implemented::equality ... ok
test return_not_implemented::inplace_arith ... ok
test return_not_implemented::inplace_bitwise ... ok
test rhs_arithmetic ... ok
test rich_comparisons_python_3_type_error ... ok
test lhs_fellback_to_rhs ... ok

test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 14 tests
test return_not_implemented::reverse_arith ... ignored
test binary_arithmetic ... ok
test return_not_implemented::arith ... ok
test rich_comparisons_python_3_type_error ... ok
test rich_comparisons ... ok
test inplace_operations ... ok
test lhs_fellback_to_rhs ... ok
test return_not_implemented::inplace_arith ... ok
test return_not_implemented::equality ... ok
test return_not_implemented::ordering ... ok
test return_not_implemented::inplace_bitwise ... ok
test unary_arithmetic ... ok
test rhs_arithmetic ... ok
test return_not_implemented::bitwise ... ok

test result: ok. 13 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s

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.01s

running 2 tests
test test_buffer_referenced ... ok
test test_buffer ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

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.01s

running 3 tests
test test_bytearray_vec_conversion ... ok
test test_pybytes_bytes_conversion ... ok
test test_pybytes_vec_conversion ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 3 tests
test class_attributes_are_immutable ... ignored
test class_attributes ... ok
test recursive_class_attributes ... ok

test result: ok. 2 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 17 tests
test empty_class_in_module ... ignored
test class_with_docstr ... ok
test dunder_dict_support ... ok
test access_dunder_dict ... ok
test custom_names ... ok
test class_with_object_field ... ok
test inherited_dict ... ok
test empty_class ... ok
test test_tuple_struct_class ... ok
test panic_unsendable_child - should panic ... ok
test unit_class ... ok
test test_pymethods_from_py_with ... ok
test panic_unsendable_base - should panic ... ok
test test_raw_idents ... ok
test inherited_weakref ... ok
test weakref_dunder_dict_support ... ok
test weakref_support ... ok

test result: ok. 16 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.02s

running 6 tests
test test_polymorphic_container_stores_sub_class ... ok
test test_polymorphic_container_does_not_accept_other_types ... ok
test test_polymorphic_container_stores_base_class ... ok
test test_pycell_deref ... ok
test test_cloneable_pyclass ... ok
test test_pyref_as_base ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 7 tests
test new_with_custom_error ... ok
test tuple_class_with_new ... ok
test subclass_new ... ok
test new_with_one_arg ... ok
test unit_class_with_new ... ok
test new_with_two_args ... ok
test empty_class_with_new ... ok

test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 1 test
test test_compile_errors ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 9.89s

running 8 tests
test test_date_check ... ok
test test_delta_check ... ok
test test_pydatetime_out_of_bounds ... ok
test test_pytime_out_of_bounds ... ok
test test_datetime_utc ... ok
test test_pydate_out_of_bounds ... ok
test test_datetime_check ... ok
test test_time_check ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 2 tests
test test_override_slot ... ok
test test_default_slot_exists ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 1 test
test iter_dict_nosegv ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.46s

running 4 tests
test test_enum_arg ... ignored
test test_return_enum ... ignored
test test_default_repr_correct ... ok
test test_enum_class_attr ... ok

test result: ok. 2 passed; 0 failed; 2 ignored; 0 measured; 0 filtered out; finished in 0.01s

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.01s

running 17 tests
test test_named_field_with_ext_fn ... ok
test test_from_py_with ... ok
test test_enum ... ok
test test_named_fields_struct ... ok
test test_enum_catch_all ... ok
test test_generic_transparent_named_field_struct ... ok
test test_generic_named_fields_struct ... ok
test test_struct_nested_type_errors ... ok
test test_enum_error ... ok
test test_err_rename ... ok
test test_struct_nested_type_errors_with_generics ... ok
test test_transparent_named_field_struct ... ok
test test_transparent_struct_error_message ... ok
test test_transparent_tuple_error_message ... ok
test test_transparent_tuple_struct ... ok
test test_tuple_struct ... ok
test test_tuple_struct_error_message ... ok

test result: ok. 17 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 6 tests
test gc_during_borrow ... ok
test gc_integration2 ... ok
test gc_integration ... ok
test class_with_freelist ... ok
test inheritance_with_new_methods_with_drop ... ok
test data_is_dropped ... ok

test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 4 tests
test getter_setter_autogen ... ok
test class_with_properties ... ok
test tuple_struct_getter_setter ... ok
test ref_getter_setter ... ok

test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 11 tests
test call_base_and_sub_methods ... ok
test handle_result_in_new ... ok
test inheritance_with_new_methods ... ok
test inheriting_native_type::inherit_set ... ok
test subclass ... ok
test inheriting_native_type::inherit_dict_drop ... ok
test mutation_fails ... ok
test is_subclass_and_is_instance ... ok
test inheriting_native_type::inherit_dict ... 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.01s

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.01s

running 3 tests
test test_delitem ... ok
test test_getitem ... ok
test test_setitem ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 13 tests
test class_method ... ok
test instance_method ... ok
test class_method_with_args ... ok
test test_from_sequence ... ok
test method_with_lifetime ... ok
test static_method_with_args ... ok
test meth_doc ... ok
test meth_args ... ok
test instance_method_with_args ... ok
test method_with_pyclassarg ... ok
test test_cfg_attrs ... ok
test static_method ... ok
test test_raw_idents ... ok

test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s

running 12 tests
test test_module_functions_with_module ... ok
test test_module_dunder_all ... ok
test test_module_doc_hidden ... ok
test test_module_dict ... ok
test test_custom_names ... ok
test test_module_from_code ... ok
test test_module_renaming ... ok
test test_module_with_functions ... ok
test test_module_nesting ... ok
test test_module_with_constant ... ok
test test_raw_idents ... ok
test test_vararg_module ... ok

test result: ok. 12 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

running 1 test
test requires_1_54::meth_doc ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 21 tests
test descr_getset ... ok
test deprecated::callable ... ok
test getattr_doesnt_override_member ... ok
test delitem ... ok
test contains ... ok
test iterator ... ok
test callable ... ok
test setitem ... ok
test setdelitem ... ok
test len ... ok
test test_bool ... ok
test test_contains_opt_out ... ok
test test_delattr ... ok
test test_getattr ... ok
test test_getitem ... ok
test test_hash ... ok
test test_hash_opt_out ... ok
test test_repr ... ok
test test_setattr ... ok
test test_str ... ok
test test_await ... ok

test result: ok. 21 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s

running 10 tests
test test_closure_counter ... ok
test test_conversion_error ... ok
test test_functions_with_function_args ... ok
test required_argument_after_option ... ok
test test_closure ... ok
test test_optional_bool ... ok
test use_pyfunction ... ok
test test_buffer_add ... ok
test test_function_with_custom_conversion ... ok
test test_function_with_custom_conversion_error ... ok

test result: ok. 10 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 14 tests
test contains ... ok
test getattr_doesnt_override_member ... ok
test delitem ... ok
test descr_getset ... ok
test setdelitem ... ok
test setitem ... ok
test iterator ... ok
test len ... ok
test sequence ... ok
test comparisons ... ok
test string_methods ... ok
test test_basics ... ok
test test_cls_impl ... ok
test test_await ... ok

test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s

running 3 tests
test test_clone_ref ... ok
test test_nested_iter ... ok
test test_nested_iter_reset ... ok

test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 11 tests
test test_delitem ... ok
test test_concat ... ok
test test_getitem ... ok
test test_generic_list_get ... ok
test test_inplace_repeat ... ok
test test_inplace_concat ... ok
test test_contains ... ok
test test_generic_list_set ... ok
test test_option_list_get ... ok
test test_repeat ... ok
test test_setitem ... ok

test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 0 tests

test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

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.01s

running 8 tests
test class_with_docs ... ok
test class_without_docs_or_signature ... ok
test class_with_docs_and_signature ... ok
test class_with_signature ... ok
test test_function ... ok
test test_methods ... ok
test test_pyfn ... ok
test test_raw_identifiers ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 2 tests
test test_unsendable_dict ... ok
test test_unsendable_dict_with_weakref ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

running 2 tests
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.01s

running 8 tests
test intopytuple_primitive ... ok
test mut_ref_arg ... ok
test pytuple_primitive_iter ... ok
test pytuple_pyclass_iter ... ok
test return_custom_class ... ok
test test_result_conversion ... ok
test intopytuple_pyclass ... ok
test test_pickle ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s

running 1 test
test wrap_pyfunction_deduction ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s with  feature
  • Loading branch information
aviramha committed Jan 31, 2022
1 parent bb0ae49 commit 6aacb46
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fix `cargo test` with `extension-module` feature. (Requires `cargo +nightly -Zextra-link-arg test` for now.) #[1123](https://github.com/PyO3/pyo3/pull/1123)
- Fix undefined symbol for `PyObject_HasAttr` on PyPy. [#2025](https://github.com/PyO3/pyo3/pull/2025)
- Fix memory leak in `PyErr::into_value`. [#2026](https://github.com/PyO3/pyo3/pull/2026)
- Fix clippy warning `needless-option-as-deref` in code generated by `#[pyfunction]` and `#[pymethods]`. [#2040](https://github.com/PyO3/pyo3/pull/2040)
Expand Down
16 changes: 8 additions & 8 deletions guide/src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ PyO3 provides a struct [`GILOnceCell`] which works equivalently to `OnceCell` bu

[`GILOnceCell`]: {{#PYO3_DOCS_URL}}/pyo3/once_cell/struct.GILOnceCell.html

## I can't run `cargo test`: I'm having linker issues like "Symbol not found" or "Undefined reference to _PyExc_SystemError"!
## I can't run `cargo test` or `cargo run`: I'm having linker issues like "Symbol not found" or "Undefined reference to _PyExc_SystemError"!

Currently, [#340](https://github.com/PyO3/pyo3/issues/340) causes `cargo test` to fail with linking errors when the `extension-module` feature is activated. For now you can work around this by making the `extension-module` feature optional and running the tests with `cargo test --no-default-features`:
On unix operating systems the `extension-module` feature is required to disable linking against libpython to meet criteria of how Python extension modules should be built.

```toml
[dependencies.pyo3]
{{#PYO3_CRATE_VERSION}}
PyO3 is able to re-enable linking for binaries and tests in the project, but it requires a nightly cargo. To use this feature, you must use nightly cargo, e.g.:

[features]
extension-module = ["pyo3/extension-module"]
default = ["extension-module"]
```
# For cargo test
cargo +nightly test
# For cargo run
cargo +nightly run
```

## I can't run `cargo test`: my crate cannot be found for tests in `tests/` directory!
Expand Down
8 changes: 8 additions & 0 deletions pyo3-build-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ fn _add_extension_module_link_args(target_os: &str, mut writer: impl std::io::Wr
writeln!(writer, "cargo:rustc-cdylib-link-arg=-undefined").unwrap();
writeln!(writer, "cargo:rustc-cdylib-link-arg=dynamic_lookup").unwrap();
}
if target_os != "windows" && target_os != "android" {
let interpreter_config = get();
let lib_name = interpreter_config.lib_name.as_ref().unwrap();
println!("cargo:rustc-link-arg-bins=-l{}", lib_name);
println!("cargo:rustc-link-arg-tests=-l{}", lib_name);
println!("cargo:rustc-link-arg-benches=-l{}", lib_name);
println!("cargo:rustc-link-arg-examples=-l{}", lib_name);
}
}

/// Loads the configuration determined from the build environment.
Expand Down

0 comments on commit 6aacb46

Please sign in to comment.