Skip to content

Commit 0b868d2

Browse files
committed
Eanble abi3_inheritance test again
1 parent 3f5d02d commit 0b868d2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn test_compile_errors() {
7979
t.pass("tests/ui/pymodule_missing_docs.rs");
8080
#[cfg(not(any(Py_LIMITED_API, feature = "experimental-inspect")))]
8181
t.pass("tests/ui/forbid_unsafe.rs");
82-
#[cfg(all(Py_LIMITED_API, not(Py_3_12), not(feature = "experimental-async")))]
82+
#[cfg(all(Py_LIMITED_API, not(Py_3_12), feature = "experimental-async"))]
8383
// output changes with async feature
8484
t.compile_fail("tests/ui/abi3_inheritance.rs");
8585
#[cfg(all(Py_LIMITED_API, not(Py_3_9)))]

tests/ui/abi3_inheritance.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ error[E0277]: pyclass `PyException` cannot be subclassed
66
|
77
= help: the trait `PyClassBaseType` is not implemented for `PyException`
88
= note: `PyException` must have `#[pyclass(subclass)]` to be eligible for subclassing
9-
= note: with the `abi3` feature enabled, PyO3 does not support subclassing native types
9+
= note: subclassing native types requires Python >= 3.12 when using the `abi3` feature
1010
help: the trait `PyClassBaseType` is implemented for `PyAny`
1111
--> src/types/any.rs
1212
|
@@ -22,7 +22,7 @@ error[E0277]: pyclass `PyException` cannot be subclassed
2222
|
2323
= help: the trait `PyClassBaseType` is not implemented for `PyException`
2424
= note: `PyException` must have `#[pyclass(subclass)]` to be eligible for subclassing
25-
= note: with the `abi3` feature enabled, PyO3 does not support subclassing native types
25+
= note: "subclassing native types requires Python >= 3.12 when using the `abi3` feature",
2626
help: the trait `PyClassBaseType` is implemented for `PyAny`
2727
--> src/types/any.rs
2828
|

0 commit comments

Comments
 (0)