pyo3/tests
Code Apprentice 79591f2161
Add error messages for unsupported macro features on compilation (#4194)
* First implementation

* tweak error message wording

* Fix boolean logic

* Remove redundant parens

* Add test for weakref error

* Fix test

* Reword error message

* Add expected error output

* Rinse and repeat for `dict`

* Add test output file

* Ignore Rust Rover config files

* cargo fmt

* Add newsfragment

* Update newsfragments/4194.added.md

Co-authored-by: David Hewitt <mail@davidhewitt.dev>

* Use ensure_spanned! macro

Co-authored-by: David Hewitt <mail@davidhewitt.dev>

* Use ensure_spanned! macro for weakref error, too

Co-authored-by: David Hewitt <mail@davidhewitt.dev>

* Revert "Ignore Rust Rover config files"

This reverts commit 6c8a2eec581ed250ec792d8465772d649b0a3199.

* Update wording for error message

Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>

* Update weakref error message, too

* Refactor constant to a pyversions module

* Fix compiler errors

* Another wording update

Co-authored-by: David Hewitt <mail@davidhewitt.dev>

* And make weakref wording the same

* Fix compiler error due to using weakref in our own code

* Fix after merge

* apply conditional pyclass

* update conditional compilation in tests

---------

Co-authored-by: cojmeister <luqas.c@gmail.com>
Co-authored-by: David Hewitt <mail@davidhewitt.dev>
Co-authored-by: Icxolu <10486322+Icxolu@users.noreply.github.com>
2024-06-16 10:23:03 +00:00
..
ui Add error messages for unsupported macro features on compilation (#4194) 2024-06-16 10:23:03 +00:00
test_anyhow.rs
test_append_to_inittab.rs
test_arithmetics.rs
test_buffer.rs
test_buffer_protocol.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_bytes.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_class_attributes.rs
test_class_basics.rs Add error messages for unsupported macro features on compilation (#4194) 2024-06-16 10:23:03 +00:00
test_class_comparisons.rs feat: Add 'ord' option for PyClass and corresponding tests (#4202) 2024-06-07 19:08:53 +00:00
test_class_conversion.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_class_new.rs Added `From<Bound<'py, T>>` impl for `PyClassInitializer<T>`. (#4214) 2024-05-28 01:49:52 +00:00
test_compile_error.rs Add error messages for unsupported macro features on compilation (#4194) 2024-06-16 10:23:03 +00:00
test_coroutine.rs
test_datetime.rs
test_datetime_import.rs
test_declarative_module.rs Automated module= field creation in declarative modules (#4213) 2024-06-06 07:54:26 +00:00
test_default_impls.rs add pyclass `eq` option (#4210) 2024-05-31 14:13:30 +00:00
test_dict_iter.rs
test_enum.rs feat: Add 'ord' option for PyClass and corresponding tests (#4202) 2024-06-07 19:08:53 +00:00
test_exceptions.rs
test_field_cfg.rs
test_frompyobject.rs
test_gc.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_getter_setter.rs
test_inheritance.rs
test_macro_docs.rs
test_macros.rs
test_mapping.rs
test_methods.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_module.rs
test_multiple_pymethods.rs
test_no_imports.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_proto_methods.rs implement `PartialEq<str>` for `Bound<'py, PyString>` (#4245) 2024-06-16 08:19:21 +00:00
test_pyfunction.rs Use `Ident::parse_any` for `name` attributes (#4226) 2024-06-03 19:45:36 +00:00
test_pyself.rs
test_sequence.rs ci: updates for Rust 1.79 (#4244) 2024-06-13 18:24:13 +00:00
test_serde.rs Remove deferred reference count increments and make the global reference pool optional (#4095) 2024-05-11 14:48:45 +00:00
test_static_slots.rs
test_string.rs
test_super.rs
test_text_signature.rs
test_variable_arguments.rs
test_various.rs Add error messages for unsupported macro features on compilation (#4194) 2024-06-16 10:23:03 +00:00
test_wrap_pyfunction_deduction.rs feature gate `as/into_gil_ref` APIs (Part 3) (#4172) 2024-05-10 17:03:57 +00:00