pyo3/tests
Lily Foote 940804fe0d
Pyerr value bound (#3820)
* Implement PyErr::value_bound

* Use PyErr::value_bound in conversions

* Implement PyErr::from_value_bound

* Remove unnecessary clone

* Return a reference from PyErr::value_bound

* Avoid clone in PyErr::from_value_bound

* Use PyErr::from_value_bound instead of from_value

* Remove unnecessary .as_borrowed() calls

* Remove unused import

* Simplify UnraisableCapture.hook

* Use Bound::from_owned_ptr_or_opt in fn cause

* Update PyErrState::lazy to take Py<PyAny>

This is easier to work with elsewhere than `&PyAny` or
`Bound<'py, PyAny>`.

* Add Bound PyUnicodeDecodeError constructors

* Update PyErr::from_value_bound to take Bound

* Simplify PyErr::from_value

* Simplify PyErr::value

* Remove unnecessary reference

* Simplify Pyerr::cause implementation

* Simplify PyUnicodeDecodeError::new_bound
2024-02-17 00:27:45 +00:00
..
ui support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_anyhow.rs port `Python::run` to `Bound` API 2024-02-09 22:09:16 +01:00
test_append_to_inittab.rs port `Python::run` to `Bound` API 2024-02-09 22:09:16 +01:00
test_arithmetics.rs Revert "Merge pull request #3578 from davidhewitt/typed-helpers" 2024-02-03 20:56:23 +00:00
test_buffer.rs convert `PyBuffer` to `Bound` API (#3836) 2024-02-14 22:10:59 +00:00
test_buffer_protocol.rs convert `PyBuffer` to `Bound` API (#3836) 2024-02-14 22:10:59 +00:00
test_bytes.rs add `PyBytes::new_bound` 2024-02-01 08:52:28 +00:00
test_class_attributes.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_class_basics.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_class_conversion.rs Revert "Merge pull request #3578 from davidhewitt/typed-helpers" 2024-02-03 20:56:23 +00:00
test_class_new.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_compile_error.rs feat: support pyclass on complex enums 2024-01-18 22:04:42 +09:00
test_coroutine.rs Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
test_datetime.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_datetime_import.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_default_impls.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_dict_iter.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_enum.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_exceptions.rs Revert "Merge pull request #3578 from davidhewitt/typed-helpers" 2024-02-03 20:56:23 +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 update `#[derive(FromPyObject)]` to use `extract_bound` (#3828) 2024-02-13 00:09:41 +00:00
test_gc.rs port `Python::run` to `Bound` API 2024-02-09 22:09:16 +01:00
test_getter_setter.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_inheritance.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_macro_docs.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_macros.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_mapping.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_methods.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_module.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_multiple_pymethods.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_no_imports.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
test_proto_methods.rs deprecate `PyDict::new` constructor (#3823) 2024-02-11 23:55:56 +00:00
test_pyfunction.rs PyCFunction bound api 2024-02-06 18:44:53 +01:00
test_pyself.rs add `PyString::new_bound` 2024-01-29 13:14:00 +00:00
test_sequence.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_serde.rs fix test-serde beta clippy warning 2023-11-28 07:29:45 +00:00
test_static_slots.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
test_string.rs tests/common.rs -> src/tests/common.rs 2023-09-24 13:34:53 +01:00
test_super.rs add `gil-refs` feature to aid migration 2023-12-29 14:42:31 +00:00
test_text_signature.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +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 port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_wrap_pyfunction_deduction.rs Add more lints 2022-03-23 08:07:28 +01:00