Do not assert class text signature using the limited API before version 3.10 as we do not support it.

This commit is contained in:
Adam Reichold 2023-05-04 18:28:43 +02:00
parent 8bd17f02c7
commit bd4b550495
1 changed files with 1 additions and 0 deletions

View File

@ -238,6 +238,7 @@ fn test_auto_test_signature_method() {
Python::with_gil(|py| {
let cls = py.get_type::<MyClass>();
#[cfg(any(not(Py_LIMITED_API), Py_3_10))]
py_assert!(py, cls, "cls.__text_signature__ == '(a, b, c)'");
py_assert!(
py,