Skip to content

Commit

Permalink
Do not assert class text signature using the limited API before versi…
Browse files Browse the repository at this point in the history
…on 3.10 as we do not support it.
  • Loading branch information
adamreichold committed May 4, 2023
1 parent 8bd17f0 commit bd4b550
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_text_signature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bd4b550

Please sign in to comment.