pyo3/tests
Adam Reichold 4dc6c1643e Turn calls of __traverse__ into no-ops for unsendable pyclass if on the wrong thread
Adds a "threadsafe" variant of `PyCell::try_borrow` which will fail instead of
panicking if called on the wrong thread and use it in `call_traverse` to turn GC
traversals of unsendable pyclasses into no-ops if on the wrong thread.

This can imply leaking the underlying resource if the originator thread has
already exited so that the GC will never run there again, but it does avoid hard
aborts as we cannot raise an exception from within `call_traverse`.
2023-12-23 15:01:08 +01:00
..
ui make `DowncastError` and `DowncastIntoError` public 2023-12-21 13:03:59 +00:00
test_anyhow.rs clippy: enable some more lints 2022-03-03 07:23:28 +00:00
test_append_to_inittab.rs add PyErr::display 2023-07-24 22:14:55 +01:00
test_arithmetics.rs Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
test_buffer.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_buffer_protocol.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_bytes.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_class_attributes.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_class_basics.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_class_conversion.rs Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
test_class_new.rs add PyErr::display 2023-07-24 22:14:55 +01:00
test_compile_error.rs Merge pull request #3595 from davidhewitt/ok-wrap 2023-11-25 05:43:54 +00:00
test_coroutine.rs Rename name to qualname and full_name to name to better match Python 2023-12-19 16:51:24 +01:00
test_datetime.rs add as_ptr and into_ptr inherent methods 2023-08-11 10:49:42 +01:00
test_default_impls.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_dict_iter.rs ci: updates for rust 1.71 2023-07-14 12:10:37 +01:00
test_enum.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_exceptions.rs Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
test_field_cfg.rs Resolve nightly clippy warning in test_field_cfg 2023-07-11 05:55:57 -04:00
test_frompyobject.rs Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
test_gc.rs Turn calls of __traverse__ into no-ops for unsendable pyclass if on the wrong thread 2023-12-23 15:01:08 +01:00
test_getter_setter.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_inheritance.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_macro_docs.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_macros.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_mapping.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_methods.rs Rename name to qualname and full_name to name to better match Python 2023-12-19 16:51:24 +01:00
test_module.rs feat: allow `classmethod`/`pass_module` to receive owned types 2023-11-22 07:45:59 +01:00
test_multiple_pymethods.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_no_imports.rs Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons 2023-11-17 16:16:19 +00:00
test_pep_587.rs clippy: deny / fix used-underscope-binding lint 2023-07-16 20:49:45 +01:00
test_proto_methods.rs Replace IterNextOutput by autoref-based specialization to allow returning arbitrary values 2023-12-20 09:56:16 +01:00
test_pyfunction.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_pyself.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_sequence.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_serde.rs fix test-serde beta clippy warning 2023-11-28 07:29:45 +00:00
test_static_slots.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_string.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_super.rs add Py2 as an internal API for optimization and dogfooding 2023-10-13 08:10:37 +02:00
test_text_signature.rs remove all functionality deprecated in 0.19 2023-11-27 22:02:19 +00:00
test_unsendable_dict.rs Use Python:;with_gil in tests 2022-07-19 19:34:23 +02:00
test_variable_arguments.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_various.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_wrap_pyfunction_deduction.rs Add more lints 2022-03-23 08:07:28 +01:00