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:
parent
8bd17f02c7
commit
bd4b550495
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue